PHP Classes

charachterEncodings

Recommend this page to a friend!

      DrasticTools  >  All threads  >  charachterEncodings  >  (Un) Subscribe thread alerts  
Subject:charachterEncodings
Summary:Support for other Central european character encod. (iso-8859-2)
Messages:2
Author:mario mapilele
Date:2007-12-26 15:40:04
Update:2008-01-13 19:54:32
 

  1. charachterEncodings   Reply   Report abuse  
Picture of mario mapilele mario mapilele - 2007-12-26 15:40:04
i like this grid very much because of its unique cappabilities, but after installation i realize it lacks a charachter encodings support ( Im looking for Central european) :-)

i was wondering is this can be done and add to the next version of Drastictools, so it can be used on different character enc platforms...

ive changed my database collation character encodings. ive done as usual when i used some other grid data script (witch worked) :
Msql character set: utf-8 (by default, unchangable)
DB created: latin1_general_cs (collation)
Tables in DB: latin1_general_cs (collation)
also i´ve put character marks on php pages (usually utf-8)
this used to work with few grids ive tried, but unfortunately not with drastic tools. (all i get is unicode marking of those fonts)

maybe you can see this as a formal request for the next drastic version. ( that would be real drastic, if i might say so!)

thx

cheers

mario

  2. Re: charachterEncodings   Reply   Report abuse  
Picture of dd dd - 2008-01-13 19:54:32 - In reply to message 1 from mario mapilele
Well, drasticGrid is now indeed UTF8 compliant and if you want to use a completely different character set, you have to edit the code yourself.
Maybe this will be made more generic in a coming release, it's put on the wish list.....

If you want to use a different character set right now, you should at least replace the utf statements in drasticSrcMySQL.class.php
Search on UTF and you'll find two lines 113 and 249 that contain UTF code, the first to define the character set that is returned to the client (in a ajax request) the second parses the client data, sent to the server.

Also you should change character sets in Mysql and in the embedding html page and if needed, the http header info.