Help with Latin Characters

Joao Jacome slyerex at gmail.com
Sun Jul 24 21:47:03 CEST 2011


2011/7/24 Chris Angelico <rosuav at gmail.com>

> On Mon, Jul 25, 2011 at 5:01 AM, Joao Jacome <slyerex at gmail.com> wrote:
> > Already tried without unicode string in rootdir, same results. What if
> try
> > using raw strings?
>
> Raw strings are just another way of typing them into your source code.
> There are different ways of writing string literals, but they produce
> the same string object:
>
> "Hello \\ world!\n"
> 'Hello \\ world!\n'
> """Hello \\ world!
> """
> r"""Hello \ world!
> """
>
> All these produce the exact same thing. But u"Hello \\ world!\n" is
> quite different, or (in Python 3) b"Hello \\ world!\n".
>
> ChrisA
> --
> http://mail.python.org/mailman/listinfo/python-list
>

http://pastebin.com/iQzPhpVh

Changed filename to rawstring, now python can retrieve the file's info.
Now in the database, character "Ê" becomes "Ê", but if i retrieve it in
python and try to get file size, it works.

Is there a way to modify output to display correctly these characters?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110724/a52ddf76/attachment.html>


More information about the Python-list mailing list