I doubt that you can fault Postgres.  It doesn't need to care about
the encoding of contents, other than it must find the end of the string
(and the conventions used may depend on the interface and
connection settings).

When you say contents of a url, do you mean the url itself, or the
page referred to?

Your parser is written in what?  And what encoding does it use
when it talks to Postgres?  (Hint: it needs to match the encoding
that Django is using.)

Have you looked at what byte sequence is in the DB?  If you have
data in the database which, according to Django's understanding
of the DB settings, is invalid, then it's not Django's job to fix it for
you.

N.B.; There's no guarantee that that web page correctly identified its
encoding either.

Bill

On Mon, Jul 5, 2010 at 8:52 AM, Yateen <yateenjo...@gmail.com> wrote:
> Thanks Bill.
>
> Do you mean even Postgres also should have thrown errors?
> My worry is different here. The characters that I am getting are valid
> contents of a HTTP URL, and my parser is able to parse them and put in
> database. However, the Django interface is not able to read it. If I
> am required to accept that it might be some different encoding (and I
> will not know why type of encoded URLs I will be getting), how do I
> handle the same? Is there any particular settings here that can be
> done?
>
> Thanks in advance.
>
> Yateen..
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to