F
Florian Weber
Hi!
Is there any way to decode a UCS-2 string with ruby?
Thanks!
Ciao!
Florian
Is there any way to decode a UCS-2 string with ruby?
Thanks!
Ciao!
Florian
Hi!
Is there any way to decode a UCS-2 string with ruby?
Florian said:Hi!
Is there any way to decode a UCS-2 string with ruby?
Florian said:Hi!
Is there any way to decode a UCS-2 string with ruby?
irb> require 'iconv'
=> true
irb> Iconv.iconv("UTF-8", "UCS-2", "\0a\0b")
=> ["ab"]
In fact, if you want to be pedantic (and when it comes to characterPaul said:However, are you sure you want UCS-2, and not its superset UTF-16? In
my experience, specifying UCS-2 instead of UTF-16 is almost always a
bug.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.