Erlang Mailing Lists

Author Message

<  Erlang Web mailing list  ~  [Erlangweb-users] chinese character input and show

Guest
Posted: Fri Apr 09, 2010 8:57 am Reply with quote
Guest
hi,

when i input some chinese characters and submit to app,
mhenoch
Posted: Fri Apr 09, 2010 11:00 am Reply with quote
User Joined: 06 Nov 2008 Posts: 29
AndyChow <diudiu8848@163.com> writes:

> when i input some chinese characters and submit to app, the chinese
> string can not show correctly. my page unicode is utf8.
>
> please give me hande, how to resolve this problem. Razz

My crystal ball tells me that you need wpart_lookup_unbreak:
http://permalink.gmane.org/gmane.comp.lang.erlang.erlangweb.general/10

It might be wrong, though. Could you show the part of the template that
outputs the Chinese text?

--
Magnus Henoch, magnus@erlang-solutions.com
Erlang Solutions
http://www.erlang-solutions.com/


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Erlangweb-users mailing list
Erlangweb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlangweb-users
http://www.erlang-web.org/
Post received from mailinglist
View user's profile Send private message
Guest
Posted: Fri Apr 09, 2010 3:21 pm Reply with quote
Guest
hi,
the following tpl is
mhenoch
Posted: Fri Apr 09, 2010 3:43 pm Reply with quote
User Joined: 06 Nov 2008 Posts: 29
AndyChow <diudiu8848@163.com> writes:

> <a wpart:href="/item/show/{[integer]item:id}"><wpart:lookup key="item:name" /></a>

Right, that's the critical line. <wpart:lookup/> doesn't handle Unicode
correctly, so you need the wpart_lookup_unbreak module in the link I
posted.

--
Magnus Henoch, magnus@erlang-solutions.com
Erlang Solutions
http://www.erlang-solutions.com/


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Erlangweb-users mailing list
Erlangweb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlangweb-users
http://www.erlang-web.org/
Post received from mailinglist
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum