Hi list readers,

<<Problems occurs then you migrate from one server to another, or using
the same DB from another mysql client like PhpMyAmin – you will see
wrong characters.

Not necessarily: characters are shown incorrectly when they are saved or
imported in the wrong charset. If they are saved correctly they are also
shown correctly.

Additionally I want to add:
since PHP 5.2.3 and MySQL 5.0.7 it is a safer approach to set the
charset by using mysql_set_charset($yourCharset).
See: http://php.net/manual/de/function.mysql-set-charset.php

The used version of adodb lite is outdated and doesn't know about
mysql_set_charset(). Imho Eric's proposal from the Oxid Commons for a
new db-layer should be conducted rather soon than later.

Best regards from Germany,

Daniel Schlichtholz
-- 
Vorname Nachname                    Mayflower GmbH
Pleichertorstraße 2                 Tel.: +49 931 359 65 xxx
D-97070 Würzburg                    Fax : +49 931 359 65 28
[email protected]       http://www.mayflower.de


Mayflower GmbH, Standort Würzburg
Firmensitz: Mannhardtstrasse 6, 80538 München
Registergericht: Amtsgericht München, HRB 142039
Geschäftsführer: Gregor Streng, Björn Schotte,
Albrecht Günther, Johann-Peter Hartmann

Am 02.08.2011 10:36, schrieb Mažvydas Skuodas:
> Hi, 
> Problems occurs then you migrate from one server to another, or using the 
> same DB from another mysql client like PhpMyAmin – you will see wrong 
> characters. 
> I suggest to make config.inc.php variable to make default charset, so we will 
> know that charset is set not to default one, and if problems occurs, we will 
> be able to transcode characters.
> 
> Mažvydas
> 
> From: Linas Kukulskis 
> Sent: Tuesday, August 02, 2011 10:51 AM
> To: [email protected] 
> Subject: [oxid-dev-general] SET NAMES ...
> 
> Hi all,
> 
> We have a question about this bugs: 
> https://bugs.oxid-esales.com/view.php?id=2937
> Have any more of you have problems with this situation? Or similar problems 
> according setting characters sets for communication with MySQL server?
> We are thinking about adding a config option to config.inc.php where you can 
> set which charset to use for 'SET NAMES  ...'.
> 
> Linas Kukulskis 
> 
> Developer 
> 
> [email protected]
> Phone +370 37 333053
> Fax +370 37 333054 
> www.oxid-esales.com 
>  
> 
> OXID eSales AG
> Bertoldstraße 48, 79098 Freiburg, Germany
> 
> Lithuanian Division
> K. Petrausko g. 26-316, Kaunas LT-44158, Lithuania
> 
>  
> Sales tax identification number: DE 231 450 866
> Board of directors authorized to represent the company:
> Roland Fesenmayr (chairman), Eric Jankowfsky, Andrea Seeger
> Chairman of the supervisory board: Harald Fuchs 
> Head office Freiburg: Bertoldstraße 48, 79098 Freiburg, Germany
> Court of registration: Amtsgericht Freiburg i. Br., HRB 701648, Office 
> reference number: 06/447/41949
> 
> 
> 
> 
> The next Generation of Premium eCommerce
> 
> 
> Latest version OXID eShop 4 as open source
> 
> 
> 
> 
> 
> --------------------------------------------------------------------------------
> _______________________________________________
> dev-general mailing list
> [email protected]
> http://dir.gmane.org/gmane.comp.php.oxid.general
> 
> 
> 
> _______________________________________________
> dev-general mailing list
> [email protected]
> http://dir.gmane.org/gmane.comp.php.oxid.general

_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to