Question:
Are there Linux text utilities to convert a text from one codepage to another?
msgrguy
2007-06-06 23:46:12 UTC
My situation calls for Windows-1251 => UTF-8
Three answers:
Spifey
2007-06-14 18:57:47 UTC
Xterm should do the trick.

In your terminal do a man xterm



look for this and go from there.



-en encoding

This option determines the encoding on which xterm runs. It corresponds to the locale resource. Encodings other

than UTF-8 are supported by using luit. The -lc option should be used instead of -en for systems with locale sup-port.



man luit
m34tba11
2007-06-07 06:54:15 UTC
there is a glib function..



as found on an internet search

GTK+ 2.x uses Unicode internally. All strings you pass to GTK+ functions must be in UTF-8. You can not just use non-ASCII characters from your Windows single- or multi-byte codepage. To convert text from the default Windows codepage to UTF-8, it's easiest to use the g_locale_to_utf8 function in GLib. Remember to free the resulting string with g_free when you don't need it any longer.



so you can probably create a script that makes use of that library etc..
juston556
2007-06-15 04:19:11 UTC
Yes. Web site below







More info email me at jpajcoll@hotmail.com


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...