Skip navigation
fstocker1
Currently Being Moderated

Character encoding Problem

Aug 9, 2012 3:13 AM

Tags: #mysql #iso-8859-1 #cf10 #codepage

I have the following setup:

 

Existing Application on CF7 with a real old MySQL Database. Everything works fine. Using ISO-8859-1 about everywhere and latin1 on the Database.

 

Now I want to migrate this to CF10 with a MySQL 5.1.52 Server

 

Everything works fine except for, when I try to change data, specifically I'm trying to do the following query:

 

UPDATE db_dj_user set gestaeti='Webprogrammierung oder ähnliches äöü' WHERE id=10235

 

and it failes with the Error

 

Incorrect string value: '/xE4hnlic...' for column 'gestaeti' at row 1

 

Looking at the page, it is encoded with ISO-8859-1

Looking at the HTML-Code it says <META http-equiv=Content-Type content="text/html; charset=ISO-8859-1">

Looking at the Field in the Database it says gestaeti text latin1_swedish_ci

Looking at the Datasource it has a connection String of characterEncoding=latin1

Looking at the ISO-8859-1-Table E4 is the correct Character for the german Umlaut ä

In Application.cfm URL and FORM Encoding are set to ISO-8859-1 cfcontent specifies ISO-8859-1 and cfprocessingdirective is set to ISO8859-1 (that last in both, Application.cfm as well as in the template where the query actually is in)

Reading umlauts out of this table works perfectly fine.

Updating the data with phpmyadmin which runs on the same apache works fine.

 

 

Any idea what I am missing, or did I hit a bug ?

 

Thanks for your ideas

Frank

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points