WCM - Das österreichische Computer Magazin Forenübersicht
 

Zurück   WCM Forum > Rat & Tat > Programmierung

Programmierung Rat & Tat für Programmierer

Microsoft KARRIERECAMPUS

Antwort
 
Themen-Optionen Ansicht
Alt 27.11.2009, 23:13   #1
athropos
Hero
 
Registriert seit: 24.07.2001
Alter: 46
Beiträge: 801


athropos eine Nachricht über Skype™ schicken
Standard Java mySQL Decoding Problem

Servus!

Ich habe folgendes Problem und bin leider bislang noch auf keine Lösung gekommen.

Aus einem (utf8_general_ci) Textfeld (TEXT oder VARCHAR) lese ich mittels mysql_connector den Inhalt (dieser enthält div. UTF-8 Zeichen).

Nur, Java zeigt mir diese Sonderzeichen (auch einfach nur Umlaute) nicht korrekt an

Befüllt wird das Tabellenfeld mittels einer PHP-Applikation, von dieser Seite aus ist imho auch alles in Ordnung (sprich dort funktionert das Auslesen und Darstellen problemlos, ich setze auch das mySQL Charset brav auf UTF-8 etc.)

Irgendwelche Tipps oder Ideen von eurer Seite? (Umwandlung via Byte[] funktioniert leider nicht).

thx & lG,
Athropos
____________________________________
Einstein, Pascal and Newton are playing hide and seek. Einstein is \"it\" so he faces the wall, closes his eyes and counts to π.
Pascal runs off like an idiot but Newton pulls out a piece of chalk and draws a 1m x 1m square on the ground and then stands in it\'s centre.

Einstein\'s done counting and turns around and sees Newton, so he grabs him and screams \"I found Newton!\"

Then Newton smirks and says, \"I\'m not Newton, I\'m Pascal\".
athropos ist offline   Mit Zitat antworten
Alt 29.11.2009, 16:32   #2
athropos
Hero
 
Registriert seit: 24.07.2001
Alter: 46
Beiträge: 801


athropos eine Nachricht über Skype™ schicken
Standard

Erledigt.
Der Fehler lag doch in der PHP-Applikation, da ich dort fälschlicherweise noch zusätzlich mit utf8_decode() und utf8_encode() gearbeitet hatte.
____________________________________
Einstein, Pascal and Newton are playing hide and seek. Einstein is \"it\" so he faces the wall, closes his eyes and counts to π.
Pascal runs off like an idiot but Newton pulls out a piece of chalk and draws a 1m x 1m square on the ground and then stands in it\'s centre.

Einstein\'s done counting and turns around and sees Newton, so he grabs him and screams \"I found Newton!\"

Then Newton smirks and says, \"I\'m not Newton, I\'m Pascal\".
athropos ist offline   Mit Zitat antworten
Antwort


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.

Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 13:15 Uhr.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum SEO by Zoints
© 2009 FSL Verlag