[opencms-dev] Special Characters in navText

Shi Jinghai shijh at langhua.org
Wed May 11 18:28:05 CEST 2011


The properties are stored in database, so you have to make sure:
1. your tomcat connector is configured with URIEncoding="UTF-8"
attribute.

If you use mysql, you have to:
2. the data in your database table is stored in UTF-8, i.e. mysql
character-set="utf8".
3. the database connected is in UTF-8.

On Wed, 2011-05-11 at 16:04 +0200, Christian Funken wrote:
> Hi and thanks for the quick response.
> 
> The ¿¿¿¿ are seen both on the Properties and on the rendered Navigation. 
> However, the same characters work when simply put inside of the page.
> The page itself is properly encoded and as I mentioned can display all 
> of the characters fine.
> 
> The only problem seems to come from the Properties. Pasting the 
> characters into the Properties window works and they are displayed 
> correctly. Once saved however they show up wrong.
> 
> I don't know about the tomcat configurations though. I am only 
> developing a template and the only exposure to the tomcat server comes 
> from a simple restart script I have to use once in a while.
> 
>   - C.Funken
> 
> 
> Am 11.05.2011 15:55, schrieb Eska:
> > Hi Christian,
> >
> > do you see the ¿¿¿¿ when looking at the Properties inside of OpenCms or when
> > viewing the rendered Navigation? When we have chinese properties somewhere
> > the
> > correct chinese characters are still present after a save.
> >
> > Do you start your tomcat with -Dfile.encoding=UTF-8 set?
> >
> > Perhaps your rendered page does declare to have UTF-8 content?
> >
> > Eska
> >
> >
> > Christian Funken wrote:
> >> Hello there.
> >>
> >> I'm in the middle of building a location navigation.
> >> Of course I'd like to use the navBuilder for this. However, I keep
> >> running into the problem that certain characters I need ( Chinese,
> >> Indian&  Korean to be precise ) don't seem to work with this.
> >> Whenever I try to set the navigation text of these folders to something
> >> like 简体中文, all that is left after saving it looks like this : ¿¿¿¿
> >>
> >> Is there some way to get around this issue and set up the navigation
> >> text with the original characters?
> >>
> >> Thanks and have a nice day.
> >> - C.Funken
> >>
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev





More information about the opencms-dev mailing list