Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Joe on Oct 16, 2008 03:26
open dhtmlx forum
Dataprocessor encoding

I placed a DataGrid into a Webpage and used the Dataprocessor to automatically update and insertdata into ther serverside database.

But once i put in umlauts (e.g. "ö","ä",...) into a cell the string ist cuttet from the umlaut char.
e.g.:
If you type in "Büro" - only "B" will be saved into the database.
The postvars are all sent to the server, but not correct. The output show something like this "B?ro".

The database, databaseconnection the webpage and the webpageheaders are all correct utf-8.

Webpageheader:
---------------------
Content-Type    text/html; charset=UTF-8

HTML-Code:
--------------
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


Thank you & kind regards
Answer posted by Support on Oct 16, 2008 06:29
If you are using latest version of dataprocessor, please try to add next line to its code 
   dp.enableUTFencoding(true); // true - utf based encoding, false - escape based encoding

If such command not supported by your version of dataprocessor.js - please contact us directly at support@dhtlmx.com - we will send you an updated js file.