Sponsored Content
Special Forums UNIX and Linux Applications Display non-english characters in shell Post 302331174 by Scott on Saturday 4th of July 2009 09:43:23 AM
Old 07-04-2009
try

Code:
LANG=es_ES

(I don't have a Spanish keyboard, but a German one and my LANG was en_US. I changed this to de_DE, and I was able to display German characters).

(this may vary depending on your OS, but have a look at /etc/gdm/locale)
 

10 More Discussions You Might Find Interesting

1. AIX

Display EBCDIC as Characters

Hi, Does anybody have a command to share that will display EBCDIC files as character? I have od -x -A d which will display hex as follows f0f1 f4f3 f0f0 f0f0 f0f6 f1f4 f6f3 f3f0 f3f9 f8f3 f1f6 f8f2 f860 d1e4 d360 f2f0 f0f5 4000 0000 5014 8c00 0000 0000 0c00 0000 0000 0d00 0000 5014 8c00... (1 Reply)
Discussion started by: LouPelagalli
1 Replies

2. UNIX for Dummies Questions & Answers

Garbage characters in display

:confused: I recently left managment and came back to AIX administration. So I am a bit rusty to say the least. The issue I am having is with the term settings when I either simply telnet to my AIX unit or even when I use an emulator like puTTY or a VAR provided one. Once I am logged into... (0 Replies)
Discussion started by: Haleja001
0 Replies

3. Programming

Unknow Characters in Display using ncurses

Hi Dear, I have written a small C/C++ aplication which is using ncurses library. When the application runs, some times some unknown characters are displayed on the screen. It happens some times and on some pc's. I have used "mvwprintw" for displaying text of my own will and proper use of... (1 Reply)
Discussion started by: iali
1 Replies

4. Shell Programming and Scripting

Display special characters

I have a file that evidently has some special characters in it. Is there a Unix command that I can use tp display the file so I can see the octal or hex values? (2 Replies)
Discussion started by: BCarlson
2 Replies

5. Shell Programming and Scripting

2D Array to display characters

Hi All, I have a series of number which indicates the coordinates where 0104 indicates X-coord = 01 and Y-coord = 04 and i want characters to form up in accordance to the coordinates given. Can any expert give me an example of 2D array code using csh or awk or perl such that the code can... (16 Replies)
Discussion started by: Raynon
16 Replies

6. Shell Programming and Scripting

Display text between two words/characters

Using sed or awk, I need to display text between two words/characters. Below are two example inputs and the desired output. In a nutshell, I need the date-range value between the quotes (but only the first occurance of date-range as there can be more than one). Example One Input: xml-report... (1 Reply)
Discussion started by: cmichaelson
1 Replies

7. Shell Programming and Scripting

Display first few characters only

I have a file with one or two lengthy lines like.... masterUserID = 'S' OR masterUserID = 'S' OR masterUserID = 'S' (many many more times) How do I display only the first few hundred characters from each line. (1 Reply)
Discussion started by: shantanuo
1 Replies

8. UNIX for Dummies Questions & Answers

Display only the first two characters of all the lines from a file.

how do i Display only the first two characters of all the lines from a file.? (1 Reply)
Discussion started by: ritusubash
1 Replies

9. Shell Programming and Scripting

Display unicode characters in zos shell

Hi all, I have a shell script that has several strings with \uxxxx characters distributed within. I would like to display these characters when I execute the script and echo the strings. I am running on zos in an sh environment. Some strings look like this: "Chcete-li pou\u017e\u00edt" <---... (1 Reply)
Discussion started by: adam.wis
1 Replies

10. Red Hat

The English characters distorted after add a right to left language

i need for a right to left language support, in red hat EL6 , for repository problem, i never could to use from yum-solution, when i try from Gnu Desktop: Desktop --> system --> preference --> keyboard --> layouts --> Add and Add second language,the second language is ok but i lose English... (4 Replies)
Discussion started by: alwaystudent
4 Replies
Date::Manip::Lang(3)					User Contributed Perl Documentation				      Date::Manip::Lang(3)

NAME
Date::Manip::Lang - language support for Date::Manip DESCRIPTION
Date::Manip supports a number of different languages when parsing dates, and more can be added. CURRENT LANGUAGES
Currently, the following languages are supported by Date::Manip. The version of Date::Manip where they were added is included (so you can see the minimum version of Date::Manip needed to parse each). The language can be chosen by setting the Language config variable to the name of the language or any of the aliases included in the table. All names and aliases are case insensitive. Language Version Aliases English default en, en_us Catalan 5.43 ca Danish 5.41 da Dutch 5.32 Nederlands, nl Finnish 6.31 fi, fi_fi French 5.02 fr, fr_fr German 5.31 de, de_de Italian 5.35 it, it_it Norwegian 6.21 nb, nb_no Polish 5.32 pl, pl_pl Portuguese 5.34 pt, pt_pt Romanian 5.35 ro, ro_ro Russian 5.41 ru, ru_ru Spanish 5.33 es, es_es Swedish 5.05 sv Turkish 5.41 tr, tr_tr ADDING A LANGUAGE
Adding a language is easily done (if you're fluent in both English and the other language). If you want to add a new language, do the following: Language name When you submit the new language, I'll need the name of the language (of course) and any common locale names that might be useful for people to select the language. For example, if you were creating a Spanish translation (which is not necessary since it already exists), I would need the following list: spanish es es_es Copy the english module Copy the english.pm file (which is in lib/Date/Manip/Lang in the Date::Manip distribution) to the new language (i.e. spanish.pm in this example). Set some variables in the new module The new module (spanish.pm) will need a few simple modifications. Change the package name from 'english' to 'spanish'. Fix the @Encodings lines. Most languages can be written in more than one encoding. The first encoding in the list should be utf-8 and the last should be perl. Include any other encodings that should be supported as well. Set the $YearAdded and $LangName appropriately. Translate the language terms Translate all of the data (after the __DATA__ line). The data section of the module (which is written in YAML) is fairly straightforward to translate. Every term is defined in the Date::Manip::Lang::english document (or in any of the other language module documents), so please refer to it to find out what each element means. Then replace the English version with the new translation. There are some requirements: 1) Every element should be defined (except for the sephm and sepms elements). 2) The module must be written using UTF-8 characters if the language includes any non-ASCII characters. 3) Each element includes a list of values (different variations of the element). In most cases, the order of the values for each element is not important since they are just used to create a regular expression for parsing dates, but a few of them are also used to determine printable values using the Date::Manip::Date::printf method (or the UnixDate function). These elements are: Element printf directive ampm %p day_abb %a day_char %v day_name %A month_abb %b month_name %B nth %E For each of these, the value that should be printed out must be the first value in the list. 4) When possible, if a language includes characters that are essentially ASCII characters with a punctuation mark, please include a variation of the value which is just ASCII with the punctuation removed. For example, the spanish name for Saturday in ASCII would be written sabado, but in reality, the first 'a' has an accent over it. This word should appear twice... first in full UTF-8 encoding, and second as all ASCII. If the language (Russian for example) has no ASCII equivalent, just include the UTF-8 representation. Feel free to contact me if you have any questions. SEE ALSO
Date::Manip - main module documentation LICENSE
This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself. AUTHOR
Sullivan Beck (sbeck@cpan.org) perl v5.16.3 2014-06-09 Date::Manip::Lang(3)
All times are GMT -4. The time now is 03:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy