"zxo102" wrote in message
news:7e38e76a-d5ee-41d9-9ed5-73a2e2993...@w1g2000prm.googlegroups.com...
On 12月29日, 下午5时06分, "Mark Tolonen" wrote:
"zxo102" wrote in message
news:2560a6e0-c103-46d2-aa5a-8604de4d1...@b38g2000prf.googlegroups.com...
[snip]
That said, learn to use Unicode string
On 12月29日, 下午5时06分, "Mark Tolonen" wrote:
> "zxo102" wrote in message
>
> news:2560a6e0-c103-46d2-aa5a-8604de4d1...@b38g2000prf.googlegroups.com...
>
> > I have a list in a dictionary and want to insert it into the html
> > file. I test it with following scripts of CASE 1, CASE 2 and CASE 3. I
>
"zxo102" wrote in message
news:2560a6e0-c103-46d2-aa5a-8604de4d1...@b38g2000prf.googlegroups.com...
I have a list in a dictionary and want to insert it into the html
file. I test it with following scripts of CASE 1, CASE 2 and CASE 3. I
can see "中文" in CASE 1 but that is not what I want. CAS
On 12月27日, 下午4时08分, "Gabriel Genellina"
wrote:
> En Sat, 27 Dec 2008 03:03:24 -0200,zxo102 escribió:
>
>
>
> > On 12月26日, 下午3时16分, "Mark Tolonen"
> > wrote:
>
> >> I was able to display 中文 successfully with this code:
>
> >> f=open('test.html','wt')
> >> f.write('''
> >>
> >> test
> >> \xd6\xd
En Sat, 27 Dec 2008 03:03:24 -0200, zxo102 escribió:
On 12月26日, 下午3时16分, "Mark Tolonen"
wrote:
I was able to display 中文 successfully with this code:
f=open('test.html','wt')
f.write('''
test
\xd6\xd0\xce\xc4''')
f.close()
Mark,
I have exactly copied your code into the htdocs of my Apa
On 12月26日, 下午3时16分, "Mark Tolonen" wrote:
> "zxo102" wrote in message
>
> news:979fdf6d-0500-47ba-87fd-0f0361ca3...@p2g2000prf.googlegroups.com...
>
>
>
>
>
> > On 12月26日, 上午4时58分, "Gabriel Genellina"
> > wrote:
> >> En Thu, 25 Dec 2008 07:27:03 -0200, zxo102 escribió:
>
> >> > On 12月25日, 下午3时3
"zxo102" wrote in message
news:979fdf6d-0500-47ba-87fd-0f0361ca3...@p2g2000prf.googlegroups.com...
On 12月26日, 上午4时58分, "Gabriel Genellina"
wrote:
En Thu, 25 Dec 2008 07:27:03 -0200, zxo102 escribió:
> On 12月25日, 下午3时35分, "Chris Rebert" wrote:
>> On Wed, Dec 24, 2008 at 11:29 PM, zxo102
On 12月26日, 上午4时58分, "Gabriel Genellina"
wrote:
> En Thu, 25 Dec 2008 07:27:03 -0200, zxo102 escribió:
>
>
>
> > On 12月25日, 下午3时35分, "Chris Rebert" wrote:
> >> On Wed, Dec 24, 2008 at 11:29 PM, zxo102 wrote:
> >> > Hi,
> >> > I retrieve some info in Chinese from postgresql and assign it to a
En Thu, 25 Dec 2008 07:27:03 -0200, zxo102 escribió:
On 12月25日, 下午3时35分, "Chris Rebert" wrote:
On Wed, Dec 24, 2008 at 11:29 PM, zxo102 wrote:
> Hi,
> I retrieve some info in Chinese from postgresql and assign it to a
> variable 'info' defined in javascript of a html page:
> var info =
-On [20081225 08:30], zxo102 (zxo...@gmail.com) wrote:
> Anybody knows how to solve this problem?
You are assigning/pushing out Python byte sequences, not Unicode. Look at
u'' string variables, x.encode() and x.decode() to help you.
It's widely documented on the Internet, a quick Python Unicode (w
On 12月25日, 下午3时35分, "Chris Rebert" wrote:
> On Wed, Dec 24, 2008 at 11:29 PM, zxo102 wrote:
> > Hi,
> > I retrieve some info in Chinese from postgresql and assign it to a
> > variable 'info' defined in javascript of a html page:
> > var info = ['\xd6\xd0\xce\xc4','\xd6\xd0\xce\xc4','\xd6\xd0
On Wed, Dec 24, 2008 at 11:29 PM, zxo102 wrote:
> Hi,
> I retrieve some info in Chinese from postgresql and assign it to a
> variable 'info' defined in javascript of a html page:
> var info = ['\xd6\xd0\xce\xc4','\xd6\xd0\xce\xc4','\xd6\xd0\xce
> \xc4']
> But I want it to be
> var info = [
12 matches
Mail list logo