german characters (e.g. ä, ß, Ö)


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers german characters (e.g. ä, ß, Ö)
# 1  
Old 12-08-2006
german characters (e.g. ä, ß, Ö)

Hi Guys,

I am working with a system whereby messages are being transferred into a UNIX box (which contain these german characters) and the message needs to be read by a script. But the box doesnt understand these german umlaut characters e.g. Ö , ä. What happens is that they get changed by the unix server (before being passed to the script) to something like ä = %D

My questions is this - how can i get my unix box to understand these characters and allow them to be passed through without being changed?

thanks

Ocelot
 
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Outputting characters after a given string and reporting the characters in the row below --sed

I have this fastq file: @M04961:22:000000000-B5VGJ:1:1101:9280:7106 1:N:0:86 GGGGGGGGGGGGCATGAAAACATACAAACCGTCTTTCCAGAAATTGTTCCAAGTATCGGCAACAGCTTTATCAATACCATGAAAAATATCAACCACACCA +test-1 GGGGGGGGGGGGGGGGGCCGGGGGFF,EDFFGEDFG,@DGGCGGEGGG7DCGGGF68CGFFFGGGG@CGDGFFDFEFEFF:30CGAFFDFEFF8CAF;;8... (10 Replies)
Discussion started by: Xterra
10 Replies

2. Shell Programming and Scripting

sed replacing specific characters and control characters by escaping

sed -e "s// /g" old.txt > new.txt While I do know some control characters need to be escaped, can normal characters also be escaped and still work the same way? Basically I do not know all control characters that have a special meaning, for example, ?, ., % have a meaning and have to be escaped... (11 Replies)
Discussion started by: ijustneeda
11 Replies

3. Solaris

File with German Umlaut

Hi I have a txt file i saved in windows with german umlauts When listing the file in Solaris 10 I can't see the umlauts I tried to export LANG to de, at and anything else in /usr/lib/locale but it didn't help Can anybody help out please? Thanks in advance (5 Replies)
Discussion started by: moutaye
5 Replies

4. Virtualization and Cloud Computing

NX Nomachine - German Keyboard does not work

Hello, I´m trying to get NX Nomachine working. On the server I use NX Free Edition for Solaris (running on Sparc Solaris 10 update 5). The Client is NX Client for Windows running on XP Professional. So far so good. Nearly everything works fine. The only problem is, that I always have the US... (1 Reply)
Discussion started by: bluemax
1 Replies
Login or Register to Ask a Question
SETLOCALE(3)								 1							      SETLOCALE(3)

setlocale - Set locale information

SYNOPSIS
string setlocale (int $category, string $locale, [string $...]) DESCRIPTION
string setlocale (int $category, array $locale) Sets locale information. PARAMETERS
o $category -$category is a named constant specifying the category of the functions affected by the locale setting: o LC_ALL for all of the below o LC_COLLATE for string comparison, see strcoll(3) o LC_CTYPE for character classification and conversion, for example strtoupper(3) o LC_MONETARY for localeconv(3) o LC_NUMERIC for decimal separator (See also localeconv(3)) o LC_TIME for date and time formatting with strftime(3) o LC_MESSAGES for system responses (available if PHP was compiled with libintl) o $locale - If $locale is NULL or the empty string "", the locale names will be set from the values of environment variables with the same names as the above categories, or from "LANG". If $locale is "0", the locale setting is not affected, only the current setting is returned. If $locale is an array or followed by additional parameters then each array element or parameter is tried to be set as new locale until success. This is useful if a locale is known under different names on different systems or for providing a fall- back for a possibly not available locale. o $... - (Optional string or array parameters to try as locale settings until success.) Note On Windows, setlocale(LC_ALL, '') sets the locale names from the system's regional/language settings (accessible via Control Panel). RETURN VALUES
Returns the new current locale, or FALSE if the locale functionality is not implemented on your platform, the specified locale does not exist or the category name is invalid. An invalid category name also causes a warning message. Category/locale names can be found in RFC 1766 and ISO 639. Different systems have different naming schemes for locales. Note The return value of setlocale(3) depends on the system that PHP is running. It returns exactly what the system setlocale function returns. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 7.0.0 | | | | | | | Support for the $category parameter passed as a | | | string has been removed. Only LC_* constants can | | | be used as of this version. | | | | | 5.3.0 | | | | | | | This function now throws an E_DEPRECATED notice | | | if a string is passed to the $category parameter | | | instead of one of the LC_* constants. | | | | +--------+---------------------------------------------------+ EXAMPLES
Example #1 setlocale(3) Examples <?php /* Set locale to Dutch */ setlocale(LC_ALL, 'nl_NL'); /* Output: vrijdag 22 december 1978 */ echo strftime("%A %e %B %Y", mktime(0, 0, 0, 12, 22, 1978)); /* try different possible locale names for german as of PHP 4.3.0 */ $loc_de = setlocale(LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge'); echo "Preferred locale for german on this system is '$loc_de'"; ?> Example #2 setlocale(3) Examples for Windows <?php /* Set locale to Dutch */ setlocale(LC_ALL, 'nld_nld'); /* Output: vrijdag 22 december 1978 */ echo strftime("%A %d %B %Y", mktime(0, 0, 0, 12, 22, 1978)); /* try different possible locale names for german as of PHP 4.3.0 */ $loc_de = setlocale(LC_ALL, 'de_DE@euro', 'de_DE', 'deu_deu'); echo "Preferred locale for german on this system is '$loc_de'"; ?> NOTES
Warning The locale information is maintained per process, not per thread. If you are running PHP on a multithreaded server API like IIS, HHVM or Apache on Windows, you may experience sudden changes in locale settings while a script is running, though the script itself never called setlocale(3). This happens due to other scripts running in different threads of the same process at the same time, changing the process-wide locale using setlocale(3). Tip Windows users will find useful information about $locale strings at Microsoft's MSDN website. Supported language strings can be found in the language strings documentation and supported country/region strings in the country/region strings documentation. PHP Documentation Group SETLOCALE(3)