LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-13-2003, 12:25 AM   #1
George2
Member
 
Registered: Oct 2003
Posts: 354

Rep: Reputation: 30
Unhappy Does Linux standard terminal support other charsets other than English?


Hello, everyone!


Does Linux standard terminal support other charsets other than English? I am using Red Hat 7.3. I have downloaded a plain text file which is encoded with GBK charset. And I use the command "more <file name>". then Linux said it is a binary file and only displays the hex value of each double-byte character. Surely I have setup the locale environment variable of the current user.

So, I want to know whether Linux standard terminal support other charset except standard English charset? Is it possible to read other charset except standard English charset in Linux standard terminal?


Thanks in advance,
Geo
 
Old 12-13-2003, 06:21 AM   #2
George2
Member
 
Registered: Oct 2003
Posts: 354

Original Poster
Rep: Reputation: 30
Unhappy

Can anyone help?


Geo
 
Old 12-13-2003, 06:37 AM   #3
pablob
Member
 
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
sorry, Geo, I can't find the difference between this problem and the other one you had.
 
Old 12-13-2003, 06:47 AM   #4
George2
Member
 
Registered: Oct 2003
Posts: 354

Original Poster
Rep: Reputation: 30
Hi, pablob buddy!


I think I have setup the locale correctly under your instructions. Then I want to verify whether my setup is correct. So I downloaded a GBK encoded file from a Windows machine and I use the command "more" to see the content of this file in Gnome terminal, but I failed to see the result and Linux said it is a binary file and only displays the hex value of each double-byte character.

I just want to verify the setup of locale.


Can you help? Do you have any good ideas?


regards,
Geo
 
Old 12-13-2003, 06:56 AM   #5
pablob
Member
 
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
well, the best test is to write a character included only on the pointed charset.
I.e:

In spanish there is a letter which is a 'n' with kind of a '-' on top of it.
I'll write this in case you can see it:

ñ

So, I know I've got a correct spanish locale install if I can write that letter (which does appear on my keyboard) on the konsole.

About your file.... I don't really know. Maybe it is a binary locale file; I mean, a file which is not encoded as GBK but a file which provides GBK support.
 
Old 12-13-2003, 07:04 AM   #6
George2
Member
 
Registered: Oct 2003
Posts: 354

Original Poster
Rep: Reputation: 30
Thanks, pablob buddy!


Do you mean the best way to verify is to type other than display?

If you write a spanish file using Windows notepad and transport it to Linux, then you use the "more" command to see the content of the file. Can you see the content correctly?


Best regards,
Geo
 
Old 12-14-2003, 06:44 AM   #7
pablob
Member
 
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
1.- I think so.
2.- At my work, I keep constantly opening text (xml) files written in windows with notepad by programmers, and working with them on linux & solaris with no problem to read them perfectly ok. The only problem (and I can ignore it, 95% of the times) is the "line-feed" character:

A line like this written on windows:

Forty six and two, try to help me

turns into this one when you read it on linux:

Forty six and two, try to help me^M

The difference is the end of line character "^M", which depending on what program is processing the file, becomes no problem at all. I mean, if you open it with OpenOffice or whatever, it will be smart enough to detect "hey, this file comes from windows, I'll take out the windows line feed and give it back to my linux user ok"
Or if it is an application server which will read the line, it will "think" the same and work ok.
 
Old 12-14-2003, 08:01 AM   #8
George2
Member
 
Registered: Oct 2003
Posts: 354

Original Poster
Rep: Reputation: 30
Thanks, pablob buddy!

I think from your reply other charset encoded characters can read with no trouble in Gnome ternimal (Red Hat 7.3) with the correctly setup of locale environment variables and no additional software or packages are needed. Am I correct?

I heard from other buddys that to display GBK charset, glibc must support GBK charset. How to see whether glibc supports a special charset, for example, GBK?


Best regards,
Geo
 
Old 12-25-2003, 06:27 AM   #9
pablob
Member
 
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
Well, for the first part, yes you are right.

For the glibc stuff... I think so, but not sure.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there English-to-English dictionary in linux? uishen Linux - General 27 06-03-2009 10:36 PM
English Openoffice with greek support alepou192 Linux - Software 2 09-03-2004 06:23 AM
Can putent() support other charset other than English? sakulagi Programming 1 06-28-2004 02:39 PM
Does Conectiva have good english support? vous Conectiva 4 01-31-2004 11:15 AM
english-english dictionary for linux zozia Linux - Software 4 09-21-2003 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration