Cyrillic characters encoding problem

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
sabio
Posts: 6
Joined: 04 Apr 2005, 11:32

Cyrillic characters encoding problem

Post by sabio »

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

Code: Select all

& #1057;& #1076;...
(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

Code: Select all

$p_string = eregi_replace( "&(\d*)", "&#\\1", $p_string );
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

Code: Select all

&http://localhost/mantis/view.php?id=1057;&http://localhost/mantis/view.php?id=1076;...
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.
thraxisp
Developer
Posts: 509
Joined: 14 Feb 2005, 03:38
Location: Ottawa, Canada
Contact:

Post by thraxisp »

Could you please file this as a bug in the tracker at http://bugs.mantisbt.org/ ?
sabio
Posts: 6
Joined: 04 Apr 2005, 11:32

Post by sabio »

Done: http://bugs.mantisbt.org/bug_view_page.php?bug_id=5401

Note also that during bugtracker account creation I've got the following message:
PROBLEMS SENDING MAIL TO:
Mailer Error: Could not instantiate mail function.

However email was delivered successefully.
Post Reply