I has problem with convert string or file to utf-8 encoding. input file
can has different encoding. Ruby 1.9 has feature force_encoding of
String class. But in 1.8.* I found Iconv.conv(‘UTF-8’, from, contents),
but I didn’t find method to define input encoding. I found to ext libs:
- rchardet - but this lib incorrect define UCS-2LE encoding(
- libcharguess - butI can’t male source to lib for ruby used
Please, help me to find other way, or anybody has ready libcharguess for
Many thanks in advance.