Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • This is OK as long as the input is an ANSI string. Commented Jan 28, 2011 at 8:24
  • @Benoit: Yeah, there's obviously more to string conversion than calling just a single function. But I didn't give any details since I think this is all the OP's looking for... Commented Jan 28, 2011 at 8:26
  • The imput come from LdapDirectory, so i guess it's an UTF8 ? Commented Jan 28, 2011 at 10:29
  • 3
    @Benoit: There's no such thing as an "ANSI string". This will work if the original string is in the multibyte format corresponding to the currently set locale. Commented Jan 28, 2011 at 11:53
  • I already have found this function, but i can't use it correctly, i just want to encode a string to unicode to send in a mail subject header. Thanks to you Commented Jan 30, 2011 at 19:07