Hi
I have a string like this "specialità" but when a create a folder it write something like this: "specialit�".How can I assing the character "à" to a string?thanks
How are you defining your string?
Builder (10 or earlier) doesn’t support multibyte characters in the editor windows. Eclipse (10.5/16 dev environments) does.
All strings in 10+ need to be UTF-8 encoded strings.
Kyle
I'm defining the string in Builder ver.10How can I solve the problem?I tryed also the definition of the string into the .properties but there is the same problem
You cannot define the string explicitly in a Builder window.
You have a few options:
<![if !supportLists]>1) <![endif]>Use Str.A2Utf8() to convert the ASCII string to a UTF-8 encoded string.
<![if !supportLists]>2) <![endif]>Define the string as a series of Bytes and then convert to a String.
<![if !supportLists]>3) <![endif]>Read the data in from an external source (e.g., from a file or the DB)
Just to expand on Kyle's list, this is where properties strings come in really handy. In the ospace directory for your module, if you had an ospace named, say, custom.oll, you would define property strings in files like custom_<locale>.properties, where <locale> is "en_US" (English US), or "fr_CA" (Canadian French), or "de" (German). In Builder, if you have a script where you have a string like "specialty", you can use [ctrl]-L to hilight the quoted string, then with that string hilighted, [ctrl]-T to translate it, thus sticking "specialty" in custom_en_US.properties, and you can stick in your custom_fr.properties, specialité. Be warned however, in properties files, any character that is not in the first 128 (i.e. any accented character) needs to be escaped. For é, it would appear as \u00e9, so your string would appear in the properties file as specialit\u00e9.
-Hugh