Menu

#544 international characters in keywords

open-fixed
Steve
None
5
2007-11-02
2006-06-26
No

I am having trouble whenever I try to add keywords for
a file that contain accents or "foreign" characters ( ñ
ó ü, etc). I believe it is caused when these words are
run through a strtolower in dbmodify.php. I tried
numerous combinations of setlocale and setting LC_*
environmental variables, but ultimately could only fix
this by changing those strtolower calls to forms using
mb_strtolower with mb_detect_encoding, etc.

(example)
$word =
trim(mb_strtolower($word,mb_detect_encoding($metadata)));

I don't know much about PHP internationalization, but
perhaps more "UTF-8" safe functions could improve this
feature for various server platforms?

Discussion

  • Marc DeTrano

    Marc DeTrano - 2006-06-26

    Logged In: YES
    user_id=837002

    Sorry, forgot to mention:
    Version: .90
    Linux - Mandriva 2006
    Apache
    PHP 5.0.4

     
  • Steve

    Steve - 2007-11-02
    • assigned_to: nobody --> b0zz
    • status: open --> open-fixed
     
  • Steve

    Steve - 2007-11-02

    Logged In: YES
    user_id=55225
    Originator: NO

    Fixed by " 950091 pdf search problem "

    will be in next release 0.96

    The above bug strips out special chars from strings and stores words in the db with out the accented characters.

    B0zzz

     

Log in to post a comment.

MongoDB Logo MongoDB