Here is the code I use to receive the data:
dom = minidom.parseString(request.raw_post_data)
default charset on django side is utf-8.
Please advise. Thanks.
Laurent
- Original Message
From: Stefan Behnel
To: python-list@python.org
Sent: Monday, September 7, 2009 11:50:28 PM
Subject:
Can someone confirm that the issue here is I need to encode the xml data using:
# encode as UTF-8
utf8_string = xml.encode( 'utf-8' )
and then post it to the server.
Laurent
- Original Message ----
From: Laurent Luce
To: Mark Tolonen ; python-list@python.org
Sent: Monday, S
@python.org
Sent: Monday, September 7, 2009 9:15:15 PM
Subject: Re: unicode + xml
"Laurent Luce" wrote in message
news:255473.44957...@web54203.mail.re2.yahoo.com...
> Hello,
>
> I am trying to do the following:
>
> - read list of folders in a specific directory: os.listdir
Hello,
I am trying to do the following:
- read list of folders in a specific directory: os.listdir() - some folders
have Japanese characters
- post list of folders as xml to a web server: I used content-type 'text/xml'
and I use '' to start the xml data.
- on the server side (Django), I get the
Hello,
Do you know if it is possible to write a plugin for windows explorer using
win32 module ?
The idea is to modify the way the folders/files are displayed in the explorer
window and also to provide some controls.
Laurent
--
http://mail.python.org/mailman/listinfo/python-list
Thanks Casey. I like your solution.
Casey Webster wrote:
> On May 18, 3:30 pm, Laurent Luce wrote:
>> I have the following list:
>>
>> [ 'test\n', test2\n', 'test3\n' ]
>>
>> I want to remove the '\n' from each string in
I had a simple loop stripping each string but I was looking for
something concise and efficient. I like the following answer:
x = [s.rstrip('\n') for s in x]
David Stanek wrote:
> On Mon, May 18, 2009 at 3:30 PM, Laurent Luce wrote:
>> I have the following list:
>&g
I have the following list:
[ 'test\n', test2\n', 'test3\n' ]
I want to remove the '\n' from each string in place, what is the most efficient
way to do that ?
Regards,
Laurent
--
http://mail.python.org/mailman/listinfo/python-list