PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > mysql.general > LOAD DATA INTO doesn't work correctly with utf8
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
LOAD DATA INTO doesn't work correctly with utf8

Réponse
 
LinkBack Outils de la discussion
Vieux 30/08/2007, 14h20   #17
Harald Vajkonny
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [solved]LOAD DATA INTO doesn't work correctly with utf8

Harald Vajkonny schrieb:
> In doing this I got another idea: Does anybody know the difference
> between the collations utf8_general_ci, utf8_unicode_ci and utf8_bin?
> I'll try these first and then get back to you about the results.
>

That was it. If I choose utf8_bin as collation everything works fine!

Best regards,
H.

--
"Wouldn't the sentence 'I want to put a hyphen between the words Fish
and And and And and Chips in my Fish-And-Chips sign' have been clearer
if quotation marks had been placed before Fish, and between Fish and
and, and and and And, and And and and, and and and And, and And and
and, and and and Chips, as well as after Chips?"

  Réponse avec citation
Vieux 31/08/2007, 06h47   #18
Ananda Kumar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [solved]LOAD DATA INTO doesn't work correctly with utf8

Hi Harald,
So you set the

collation_database=utf8_bin, what was your character_set_database values.

regards
anandkl


On 8/30/07, Harald Vajkonny <vajkonny@t-online.de> wrote:
>
> Harald Vajkonny schrieb:
> > In doing this I got another idea: Does anybody know the difference
> > between the collations utf8_general_ci, utf8_unicode_ci and utf8_bin?
> > I'll try these first and then get back to you about the results.
> >

> That was it. If I choose utf8_bin as collation everything works fine!
>
> Best regards,
> H.
>
> --
> "Wouldn't the sentence 'I want to put a hyphen between the words Fish
> and And and And and Chips in my Fish-And-Chips sign' have been clearer
> if quotation marks had been placed before Fish, and between Fish and
> and, and and and And, and And and and, and and and And, and And and
> and, and and and Chips, as well as after Chips?"
>
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: http://lists.mysql.com/mysql?unsub=anandkl@gmail.com
>
>


  Réponse avec citation
Vieux 31/08/2007, 07h14   #19
Harald Vajkonny
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [solved]LOAD DATA INTO doesn't work correctly with utf8

Hi Ananda,

Ananda Kumar schrieb:
>
> So you set the collation_database=utf8_bin, what was your
> character_set_database values.

character_set_database is "utf8". The collation utf8_bin slows down
queries, but is necessary in dealing with multilingual information.
utf8_general_ci is faster, but can not distinguish in keys between
symbols which are sorted at the same position in national character
sets, like e.g. German "a" and "ä", or French "e" and "é".

Regards,
Harald

--
"Wouldn't the sentence 'I want to put a hyphen between the words Fish
and And and And and Chips in my Fish-And-Chips sign' have been clearer
if quotation marks had been placed before Fish, and between Fish and
and, and and and And, and And and and, and and and And, and And and
and, and and and Chips, as well as after Chips?"

  Réponse avec citation
Vieux 31/08/2007, 07h52   #20
Ananda Kumar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [solved]LOAD DATA INTO doesn't work correctly with utf8

Okie, i will also try this, as we also load data from a flat file.

regards
anandkl


On 8/31/07, Harald Vajkonny <vajkonny@t-online.de> wrote:
>
> Hi Ananda,
>
> Ananda Kumar schrieb:
> >
> > So you set the collation_database=utf8_bin, what was your
> > character_set_database values.

> character_set_database is "utf8". The collation utf8_bin slows down
> queries, but is necessary in dealing with multilingual information.
> utf8_general_ci is faster, but can not distinguish in keys between
> symbols which are sorted at the same position in national character
> sets, like e.g. German "a" and "ä", or French "e" and "é".
>
> Regards,
> Harald
>
> --
> "Wouldn't the sentence 'I want to put a hyphen between the words Fish
> and And and And and Chips in my Fish-And-Chips sign' have been clearer
> if quotation marks had been placed before Fish, and between Fish and
> and, and and and And, and And and and, and and and And, and And and
> and, and and and Chips, as well as after Chips?"
>
>


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 15h53.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09881 seconds with 12 queries