xml escape problems

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

xml escape problems

zhiyongcui
How to deal with xml escape problems in field type text in form.
I try to create some employees ,but happened type in something wrong ,and I could not summit my form.
then it show me some tips ,and all my information  showed as something like '张三'
who can help me ?
Reply | Threaded
Open this post in threaded view
|

Re: xml escape problems

zhiyongcui
It showed as 张;
Reply | Threaded
Open this post in threaded view
|

Re: xml escape problems

BJ Freeman
In reply to this post by zhiyongcui
You need to wrap the variable in the following method:
${StringUtil.wrapString(browserProfile.metaTag)}


zhiyongcui sent the following on 2/27/2010 12:51 AM:
> How to deal with xml escape problems in field type text in form.
> I try to create some employees ,but happened type in something wrong ,and I
> could not summit my form.
> then it show me some tips ,and all my information  showed as something like
> '张三'
> who can help me ?

Reply | Threaded
Open this post in threaded view
|

Re: xml escape problems

Atul Vani
In reply to this post by zhiyongcui
while writing xml you have to use html-encoding,

for example: if you want to use '&' in some field then in xml you have
to write it as '&'

<... col_name="fast&amp;furious" .../>

this link might prove to be helpful:-
http://en.wikipedia.org/wiki/Character_encodings_in_HTML

:)



zhiyongcui wrote:
> How to deal with xml escape problems in field type text in form.
> I try to create some employees ,but happened type in something wrong ,and I
> could not summit my form.
> then it show me some tips ,and all my information  showed as something like
> '&#24352;&#19977;'
> who can help me ?
>  
Reply | Threaded
Open this post in threaded view
|

Re: xml escape problems

zhiyongcui
I input something like image below ,but I input something wrong,then it will return a page with information my input.

then the returned page as
Reply | Threaded
Open this post in threaded view
|

Re: xml escape problems

Atul Vani
seem like its not a problem associated with a particular language,

if there occurs an error while submitting form the form reappears but
with HTML-Encoded text instead of the original,

here's the screenshot http://i45.tinypic.com/ngykhi.png

someone please fix this...


zhiyongcui wrote:
> I input something like image below ,but I input something wrong,then it will
> return a page with information my input.
> http://n4.nabble.com/file/n1571808/input.jpg 
> then the returned page as
> http://n4.nabble.com/file/n1571808/output.jpg 
>  
Reply | Threaded
Open this post in threaded view
|

Re: xml escape problems

zhiyongcui
anyone could help me ?
Reply | Threaded
Open this post in threaded view
|

Re: xml escape problems

BJ Freeman
In reply to this post by Atul Vani
A second thought is that you are using character set not evaluated by
ofbiz so it is giving you the escaped version.


=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Suppilier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


zhiyongcui sent the following on 2/28/2010 11:57 PM:
> anyone could help me ?


Reply | Threaded
Open this post in threaded view
|

Re: xml escape problems

Jacques Le Roux
Administrator
In reply to this post by zhiyongcui
You are in a widget form, right? Did you try encode-output="false" for your fields?

Jacques

From: "zhiyongcui" <[hidden email]>
>
> anyone could help me ?
> --
> View this message in context: http://n4.nabble.com/xml-escape-problems-tp1571782p1573263.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>