my dog learned polymorphism*
The moose likes JSF and the fly likes extended characters problem with UTF-8 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "extended characters problem with UTF-8" Watch "extended characters problem with UTF-8" New topic
Author

extended characters problem with UTF-8

Mitsman Rokanos
Greenhorn

Joined: Oct 16, 2009
Posts: 3
Hi
i face a severe problem with extended characters in JSF. I develop an application where i have a jsf page with some input text fields. I use the <?xml version="1.0" encoding="UTF-8"?> tag. When i enter eg. foo÷foo÷mpla÷ and i press aply then the text results to this " foo÷foo÷mpla÷ ". Could you please help me with this problem?
Thank you very much!
Mitsman Rokanos
Greenhorn

Joined: Oct 16, 2009
Posts: 3
???
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41188
    
  45
What is happening during "i press aply then the text results to this" - does that involve a round-trip to the server? If so, are you using UTF-8 as the encoding for all steps - request page, internal processing on the server and response page?

What does the XML markup you mention have to do with this - where is that used, and what for?


Ping & DNS - my free Android networking tools app
Mitsman Rokanos
Greenhorn

Joined: Oct 16, 2009
Posts: 3
When i press the apply button the values submitted reach the seters and getters responsible to store the values in the database. But before the data arrives there it comes back to the page rendered with wrong characters appended to the extended characters!
 
Consider Paul's rocket mass heater.
 
subject: extended characters problem with UTF-8
 
Similar Threads
Handling languages other than English in Java ...........................
[Struts2] Textarea encoding.
text supported by jsp
Problem while storing Japanese characters in Oracle 9i
i18n problem in passing parameter between jsp and actions