Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-26-2004, 04:46 AM
|
#1
|
Member
Registered: May 2004
Location: Luxemburg
Distribution: Fedora Core 2, SuSE 9.1 Pro
Posts: 43
Rep:
|
Problem with special chars in general
Hi there!
I've got the following problem:
Was working on a php script, and noticed, that in a string, the ZDE (Zend Development Environment) didn't proper display chars like "é" and "è", and so on... Thought it was a config problem in ZDE itself, but it isn't... got the same problem while surfing e.g. with lynx....
The php script was previously saved under Windows, and displayed well in Zend and on the web page as well.... after saving under Linux, the special chars misbehaved....
How can I setup this, so that special chars will be well displayed? Pretty sure, that it has something to do with "encoding" standard, but where to change this??
As it seems to be a general system problem, can anyone help me please?
smokylux
|
|
|
05-26-2004, 04:53 AM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
In the past emacs has proved to be quite clever in
resolving such issues for me via its mule-environment.
Load buffer, emacs usually does a great job at picking
up the encoding used, select save buffer as from mule,
and voila! :)
Cheers,
Tink
|
|
|
05-26-2004, 05:08 AM
|
#3
|
Member
Registered: May 2004
Location: Luxemburg
Distribution: Fedora Core 2, SuSE 9.1 Pro
Posts: 43
Original Poster
Rep:
|
Thx!
That will be a solution for "correcting" scripts that should already be up and running.... that doesn't solve my general display problem.... e.g. while surfing with lynx... Noticed the problem in Mozilla too.... not quite as bad as in lynx, but still many special chars aren't displayed!
But it's a good start
Any idea on how to change the system-wide encoding, so that I won't have to open emacs for all my scripts written before?
smokylux
|
|
|
05-26-2004, 05:10 AM
|
#4
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
What's your locale set to?
I have LC_ALL=POSIX ;)
Cheers,
Tink
|
|
|
05-26-2004, 05:21 AM
|
#5
|
Member
Registered: May 2004
Location: Luxemburg
Distribution: Fedora Core 2, SuSE 9.1 Pro
Posts: 43
Original Poster
Rep:
|
Hmmmm, as I'm pretty much a newbie to Linux, can you explain me please, where exactly I can find this setting?
Thx!
|
|
|
05-26-2004, 05:32 AM
|
#6
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Open a shell ... type
env | grep LC_
Cheers,
Tink
|
|
|
05-26-2004, 05:46 AM
|
#7
|
Member
Registered: May 2004
Location: Luxemburg
Distribution: Fedora Core 2, SuSE 9.1 Pro
Posts: 43
Original Poster
Rep:
|
That gives me no output at all....
just entering "env" I got somewhere the line: LANG=en_US.ISO-8859-1 but nothing with LC_
Note: Just changed my /etc/sysconfig/i18n file and replaced en_US.UTF-8 with en_US.ISO-8859-1 as system language, before typing env... This would be Western European encoding wouldn'it?
Is there something wrong with the syntax? (means: is it ISO... or iso...)
Do I have to reboot for changes to have effect?
Is this the right thing to do?
|
|
|
All times are GMT -5. The time now is 06:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|