I've created a menu that works in the english version of the website, but there is also a chinese version which is not displayed. The only difference is that there are chinese characters in the menu. The menu is renderd and I can click the links, but no text is displayed. Any idea what this could be?
Going to need a bit more info on this one. I've done all kinds of foreign characters and had no problems. I suppose it could be an encoding problem (are you using unicode and set your html page to render as unicode?)
Can you give us an example of your xslt and some content nodes?
I fixed it :). The problem wasn't xslt related. We used Cufon to replace some text and Cufon didn't support the chinese characters. So for the chinese version of the website we simply disabled Cufon :).
Thanks for reporting back on the issue. I had similar problems with sifr once. You have to be sure the font supports the characters you need. In fact, you could use ImageGen to produce the text but again, you'd need a font that supported the characters you need. Couldn't you use a class attribute and change the base font for cufon or ImageGen for various languages?
Chinese menu not displayed
Hello,
I've created a menu that works in the english version of the website, but there is also a chinese version which is not displayed. The only difference is that there are chinese characters in the menu. The menu is renderd and I can click the links, but no text is displayed. Any idea what this could be?
Jeroen
Going to need a bit more info on this one. I've done all kinds of foreign characters and had no problems. I suppose it could be an encoding problem (are you using unicode and set your html page to render as unicode?)
Can you give us an example of your xslt and some content nodes?
Also, what version of Umbraco?
cheers,
doug.
Here is the XSLT I use to create the menu. I'm using Umbraco 4.6.1
Jeroen
Thanks.
A couple questions for you...
1. what happens if you change the output method to "xml" rather than "html"?
2. when you view the source of the page with the chinese menu on it, do you get the right number of <li> and <a> items?
3. if 'yes' to #2, what appears for the href and the <xsl:value-of select="pagetitle" /> for them?
cheers,
doug.
I fixed it :). The problem wasn't xslt related. We used Cufon to replace some text and Cufon didn't support the chinese characters. So for the chinese version of the website we simply disabled Cufon :).
Jeroen
Thanks for reporting back on the issue. I had similar problems with sifr once. You have to be sure the font supports the characters you need. In fact, you could use ImageGen to produce the text but again, you'd need a font that supported the characters you need. Couldn't you use a class attribute and change the base font for cufon or ImageGen for various languages?
Anyway, glad you got it sorted out.
cheers,
doug.
is working on a reply...