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.
For sources written under MS-Windows (R), RTL_TEXTENCODING_MS_1252 should work in most cases.