![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| c language + simple question regarding memory addresses and ASCII characters | JamesGoh | High Level Programming | 7 | 01-30-2008 04:00 PM |
| Weird Ascii characters in file names | yamsin789 | Shell Programming and Scripting | 2 | 10-07-2007 10:27 AM |
| Hex characters of ascii file | budrito | HP-UX | 2 | 08-10-2005 10:26 PM |
| Replace characters in a string using their ascii value | roops | Shell Programming and Scripting | 2 | 03-04-2005 01:51 AM |
| stupid question about ascii characters | jalburger | High Level Programming | 2 | 09-28-2004 03:56 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Multibyte characters to ASCII
Hello,
Is there any UNIX utility/command/executable that will convert mutlibyte characters to standard single byte ASCII characters in a given file? and Is there any UNIX utility/command/executable that will recognize multibyte characters in a given file name? The typical multibyte character set that we might encounter are Chinese and or Japanese. Thanks Jerardfjay ![]() |
|
||||
|
Quote:
Which is precisely what I intend to do If I can do it. Unfortunately there are several apps that feed into my script and changing the back-end system is not feasible. Even though I may not be able to change the data content represented in multi-byte character to single, If I can perform the change atleast at the file name level I should be ok. Please advise. Thanks Jerardfjay |
|
||||
|
Quote:
I also noticed that I have two env vars set for the Language Code:
shell>> env | grep LANG LANG=ja_JP.euc_jp NLS_LANG=AMERICAN_AMERICA.US7ASCII Jerardfjay |
|
||||
|
POSIX locale and localedef don't support NLS_<anything> - there is an NLSPATH that is part of locale settings. With the exception of LANG, the locale variables all are LC_<something>. The NLS_<anything> variables I've seen have been in support of databases.
You will want to follow Vino's advice and use the LANG environment variable, but leave the NLS_ stuff alone. It doesn't affect locale. |
|
||||
|
Jim,
thanks for the clarification between the two vars. Would you happen to know if these variables are system wide settings or for individual logins? Would I require a special type of terminal emulator like exceed to see the character sets correctly or would a normal windows telnet session be okay. Please advise. Thanks. Jerardjjay |
|
|||||
|
Quote:
when you set these variables to values of your choice, you have the luxury of having two locales in your machine. But each locale will be specific to a terminal. I am not sure about a telnet window displaying those characters. But on kdesktop, I could see them. Vino |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|