I want to convert CP932 string to UTF-8.
In Ubuntu I can convert string by a command
iconv -f CP932 -t UTF-8 [input_file]
But the iconv in Apline 3.17 fails with a error: iconv: source charset CP932: Invalid argument.
How can I add CP932 charset to iconv?
The command is called from a ruby script so I don't adhere iconv if there is better way to convert string CP932 to UTF-8 with ruby or another command line tool in Alpine.
Compile
iconvfrom source rather than installing it with a package.iconvto/usr/local/bin:Now you can run
iconvsuccessfully with CP932. Here's an example:and:
and:
and: