Cyrillic characters encoding problem
Posted: 04 Apr 2005, 11:53
Hi, there
I'm new to Mantis and run into encoding trouble when trying to use it.
When I use russian charactes in bug description/notes they are displayed as
(I've inserted spaces after '&' to prevent forum engine replacing codes with corresponding symbols - so this sample is exactly what I saw, except for the spaces)
I've managed to workaround the issue by injecting the following code
into 'string_restore_valid_html_tags' and commenting some calls to 'htmlspecialchars'.
However, notification emails are still ugly. :( Moreover in emails #nnn is replaced with bug link so two characters from the first code block become
What is the right way for fixing these problems?
P.S. Is there any way to make Mantis send HTML emails instead of plain-text ones? Then I could at least disable bug link substitution for emails and get readable messages even though characters remain encoded.
I'm new to Mantis and run into encoding trouble when trying to use it.
When I use russian charactes in bug description/notes they are displayed as
Code: Select all
& #1057;& #1076;...I've managed to workaround the issue by injecting the following code
Code: Select all
$p_string = eregi_replace( "&(\d*)", "&#\\1", $p_string );However, notification emails are still ugly. :( Moreover in emails #nnn is replaced with bug link so two characters from the first code block become
Code: Select all
&http://localhost/mantis/view.php?id=1057;&http://localhost/mantis/view.php?id=1076;...P.S. Is there any way to make Mantis send HTML emails instead of plain-text ones? Then I could at least disable bug link substitution for emails and get readable messages even though characters remain encoded.