Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#846 (in 2.7.1) Convert illegal character by default

Next_minor_version
fixed
1
2015-01-10
2005-12-14
Sire 404
No

Please add the //TRANSLIT parameter to the
out_charset parameter of the iconv() function by
default! This would have saved me and probably many
other developers hours of grief!

Problem now:
If your database is likely to contain text copied
from Microsoft Word documents, it's very likely that
you will get this error message when trying to export
or import it with phpMyAdmin: "Notice: iconv():
Detected an illegal character in input string in
file.php on line x". This is because of the evil
0x96 "long dash" character. MS Word as default (!)
converts all double hyphens into this illegal
character. The solution is either to convert 0x96
(dash) into the regular 0x2d (hyphen/minus), or to
append the //TRANSLIT (try and convert the character)
or //IGNORE (drop the character) parameters to the
iconv function.

Read more here:
http://php.net/manual/en/function.iconv.php

Thanks for considering this.

//Sire404

Discussion

  • Sire 404
    Sire 404
    2005-12-14

    Two textfiles with the illegal dash character, one unicode.

     
    Attachments
  • Sire 404
    Sire 404
    2005-12-14

    • priority: 5 --> 6
     
  • Michal Čihař
    Michal Čihař
    2005-12-14

    • priority: 6 --> 1
    • summary: Convert illegal character by default --> (in 2.7.1) Convert illegal character by default
    • status: open --> open-fixed
     
  • Michal Čihař
    Michal Čihař
    2005-12-14

    Logged In: YES
    user_id=192186

    Default changed in CVS, thanks for suggestion.

     
  • Michal Čihař
    Michal Čihař
    2005-12-15

    • assigned_to: nobody --> nijel
     
  • Marc Delisle
    Marc Delisle
    2006-03-06

    • status: open-fixed --> closed-fixed
     
  • Michal Čihař
    Michal Čihař
    2013-06-11

    • Status: closed-fixed --> fixed