Announcement

Collapse
No announcement yet.

Umlaute nicht mehr richtig

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Umlaute nicht mehr richtig

    Hm, ok hat sich schon erledigt.
    http://download.oracle.com/docs/html...02/gblsupp.htm

    Similarly, in batch mode, set the correct character set value of NLS_LANG by inserting a SET NLS_LANG command at the start of the batch procedure, according to the character set of the files to be processed in the procedure.

    Also quasi
    SET NLS_LANG=GERMAN_GERMANY.WE8PC850
    in die Batch, in der ich die sqlplus aufrufe. Für PHP dann die globale Variable auf GERMAN_GERMANY.WE8ISO8859P1 setzen.

    ----------------------

    Nach einer Neuinstallation eines Entwicklerrechners (Windows XP Prof. und wamp, Oracle Client 10.1.0.2.0 gegen 10g Server, php Webanwendung via ODBC) werden die Umlaute verschluckt. ungefähr wird zu ungefahr. Sowohl via PHP/Web als auch sqlplus.

    Wenn ich die NLS_LANG setze als Umgebungsvariable, dann funktioniert es via PHP so:
    [highlight=sql]NLS_LANG=GERMAN_GERMANY.WE8ISO8859P1[/highlight]

    Dann passt es dort wieder. Mit sqlplus stimmt es dann aber nicht mehr (Ergebis: ungefõhr)

    Via sqlplus geht es nur so:
    [highlight=sql]NLS_LANG=GERMAN_GERMANY.WE8PC850[/highlight]

    Dann passt es aber wieder nicht via PHP (Ergebnis: ungef„hr).

    Zuvor (vor der Neuinstallation) ging es ganz normal sowohl via PHP als auch sqlplus.

    Habt ihr eine Idee, wie ich das einstellen muss, damit es wieder geht?

    [highlight=sql]select value from v$nls_parameters where parameter='NLS_CHARACTERSET';

    VALUE
    ----------------------------------------------------------------
    WE8MSWIN1252[/highlight]

    Mit
    [highlight=sql]GERMAN_GERMANY.WE8MSWIN1252[/highlight]
    kommt bei sqlplus "ungefõhr" und via Web passt es. Also identisch mit dem ersten Versuch (GERMAN_GERMANY.WE8ISO8859P1).

    Grüße,
    Yusuf
    Zuletzt editiert von Wursel; 26.07.2011, 16:11.
Working...
X