Probleme mit Paramater mit Umlaute in Shell
Hallo Liste, wenn ich ein Programm (mapserver) in der Shell mit Umlauten in den Parametern starte, werden diese nicht richtig erkannt. Starte ich das gleiche aus einer Shell im emacs funktioniert alles prima. Meine locale ist LANG=de_DE@euro und CONSOLE_ENCODING="ISO-8859-15". Der Aufruf: /usr/local/mapserver/4.4.0/mapserv QUERY_STRING="map=dev.map&mode=itemnquery&qlayer=Orte&qitem=ortsname&qstring='Kückhoven'" Hat da jemand eine Idee? Vielen Dank, Frank -- Frank Rittinger TERRAPLAN Geographische Informationssysteme Gewerbestr. 33 79227 Schallstadt Germany Tel.: 07664-505315 Fax.: 07664-505321 http://www.terraplan.com
Hallo, Am Wed, 30 Mar 2005, Frank Rittinger schrieb: [..]
Der Aufruf: /usr/local/mapserver/4.4.0/mapserv QUERY_STRING="map=dev.map&mode=itemnquery&qlayer=Orte&qitem=ortsname&qstring='Kückhoven'"
Hat da jemand eine Idee?
Das riecht nach http, ergo musst du Sonderzeichen in der URL kodieren, z.B.: QUERY_STRING="`echo \"$QUERY_STRING\" | perl -pe 's/([^[:ascii:]])/sprintf("%%%02X", ord($1))/eg;'`" oder: QUERY_STRING="`echo \"$QUERY_STRING\" | perl -MURI::Escape -ne 'print uri_escape($_, "^[:ascii:]");'`"; oder: QUERY_STRING="`echo \"$QUERY_STRING\" | perl -MURI::Escape -ne 'print uri_escape($_);'`"; HTH, -dnh -- "I also need a longer attention sp- Ooh! Feet!" -- Loz Pycock
participants (2)
-
David Haller
-
Frank Rittinger