-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
=James Birkholz= wrote: | When I use a wiki extension to pass "Grätz" to this function: | | function convertSpecialCharsForSearchStr( $input ) | { | $output = $input; | $output = ereg_replace("ä","%", $output); | } | The special character doesn't match anything in a reg ex, or a | comparison operation (eg "if $input == "Grätz" fails the comparison, | even though $input contains the string "Grätz").
Most likely, your wiki is in UTF-8 and you're editing your source files in some 8-bit encoding.
- -- brion vibber (brion @ pobox.com)