if (do_name() != 'Home') : ?>
endif ?>
hebrew text
Posted by Guy on Apr 3, 2007
I'm trying to use the text() method to output some hebrew text using the following code, but altough my selected font has proper hebrew characters, the result includes non-hebrew charecters.
I used a textfile to import the text instead of typing it. (they both have the same problem)
Posted by Tom De Smedt on Apr 4, 2007
You need to inform NodeBox that your text includes Unicode characters. To do this, add a "u" in front of the string, like this:
If you're reading text from a file, make sure it is saved in Unicode format. For example, in TextEdit, convert the text to Plain Text in the Format menu, and then when you save it, select Unicode (UTF-8) in the Plain Text Encoding menu.
Then, when you import the file, have NodeBox decode the contents:
Let me know if that worked for you!