strings UNICODE ASCII textencoding RTL_TEXTENCODING_MS_1252 ISO_8859_15 characters conversion Stephan Bergman Tom Schindl How to use characters in Strings which are not ASCII?

UNO uses UNICODE strings. But in many programming languages you may have ASCII strings in a certain encoding. Thus you have to transform your string to a UNICODE string by specifying the encoding of your ASCII string.

Reference <XPropertyReplace> rPropRepl ... // insert a Euro currency symbol rPropRepl->setReplaceString(OUString("&164;", 1, ISO_8859_15 ));

For sources written under MS-Windows (R), RTL_TEXTENCODING_MS_1252 should work in most cases.

Modified to match new snippet-DTD Initial version