in reply to Re^2: best way to convert to UTF8 from UTF16
in thread best way to convert to UTF8 from UTF16

Why did you change the provided code?
  • Comment on Re^3: best way to convert to UTF8 from UTF16

Replies are listed 'Best First'.
Re^4: best way to convert to UTF8 from UTF16
by chuckd (Scribe) on Nov 03, 2008 at 21:52 UTC
    because when I looked up this function 'from_to()' I didn't see any arguments that looked like the one you provided in your example. When I tried your example from_to($texst, 'UTF-16le', 'UTF-8') I received an error saying "unknown encoding 'UTF-16le' at line #n"
      You have it backwards. What moritz posted wasn't an example, it was what you should actually use. On the other hand, the code you copied from the docs was an example.