LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   charset/locale for es_ES (https://www.linuxquestions.org/questions/linux-software-2/charset-locale-for-es_es-703798/)

Felipe 02-11-2009 02:28 AM

charset/locale for es_ES
 
Hallo:

I use kubuntu 8.04 in Spanish. I'm not sure the configuration I've to use for language spanish/spain.
I create and edit files form kwrite, konsole, windows (with samba), html pages,....

My problem. I don't know how I have to configure locale and applications for everything to being compatible (to show spacial characters like ραι....
I thing that for being compatibles files creation i have to use LANG=es_ES.utf8 and applications must be iso885915 but not sure. That makes that pages made with kate not be well displayed when accessing with firefox http.

Please, can you tell me how do I have to configure locale and applications for being compatible with spanish/spain (es_ES).

Thanks

b0uncer 02-11-2009 02:40 AM

You should probably use the es_ES.UTF-8 locale; using ISO-8859-15 should provide those letters, but my experience is that it should be used only if you need to. UTF-8 is the way to go..if you have problems with html pages you created, make sure that you (1) save the files using UTF-8 encoding (for example that) -- in kwrite I think you can select the encoding in one of the menus -- and that (2) in the html document head section you tell that the document is using UTF-8 charset by adding a line like this:

Code:

<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Of course you can use other charsets if you want to; I've found UTF-8 most suitable for my own needs. After that you can get picky about your html file's content, how you should do things and how you shouldn't.. :)

Felipe 02-11-2009 03:17 AM

Thanks:

Yes, your are right. If I always use utf8, it works fine.

I think that the problem was that I createf files with is08859-15. But even saving them as utf-8, something was wrong.
If I create them with utf-8, it works fine.

Thanks again.


All times are GMT -5. The time now is 12:19 AM.