Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Umlaute und Sonderzeichen aus Oracle mit JSP auslesen

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

ich habe ein Problem: Ich lese über eine JSP - Seite Felder einer Datenbank aus. Dabei wird ca. nur die Hälfte ausgelesen. Der String wird bei einem deutschen Umlaut oder einem Sonderzeichen unterbrochen. Ich habe nun schon folgende UTF-8 tags an der richtigen Stellte mit eingefügt:

<%@ page contentType="text/html; charset=UTF-8" %>

<%@ page pageEncoding="UTF-8" %>

<meta http-equiv="content-type" content="text/html; charset=UTF-8" />

request.setCharacterEncoding("UTF-8");

Habt ihr noch eine Idee woran es liegen könnte?

Datenbankseitig liegt Oracle zu Grunde, die auch mit UTF-8 definiert ist.

Hi,

die JSP wird ja serverseitig von einem Apache und/oder einem Tomcat Server ausgeführt, denk ich mal.

Evtl. musst du beim starten des Webservers NLS_LANG setzen?

hatte selber öfter Probleme in der Art mit PHP und Oracle, was ja grundsätzlich ähnlich deiner Konstellation ist, und da hat NLS_LANG immer geholfen.

also probier mal

export NLS_LANG=GERMAN.GERMANY.WE8ISO8859P1

in deinem Webserver Startskript ( unter UNIX/Linux ! ) zu setzen, und zwar ziemlich am Anfang, also zumindest BEVOR der Server wirklich gestartet wird.

Hab ich nämlich auch schon gemacht: schön unten ans Startskript die Variable reingepasted, da ist es natürlich "zu spät" :)

vielleicht hilfts

greets

root@localhost

  • 2 Wochen später...

Hey,

danke für deine Hilfe, hat aber leider auch nichts gebracht.

lg

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.