On Fri, 1 Sep 2006 00:28:38 +0300 Nerijus Baliunas <[EMAIL PROTECTED]> wrote:

NB> On Sat, 8 Apr 2006 23:21:53 +0200 Vadim Zeitlin <[EMAIL PROTECTED]> wrote:
NB> 
NB> VZ> NB> How to set it? I changed wxMDialogs.cpp line 1090 to be:
NB> VZ> NB> 
NB> VZ> NB>    pageHtmlText << _T("<head><meta http-equiv=Content-Type 
content=\"text/html; charset=UTF-8\"></head>"
NB> VZ> NB>                    "<body text=#000000 bgcolor=#ffffff>"
NB> VZ> NB>                    "<font face=\"Times New Roman,times\">"
NB> VZ> NB> 
NB> VZ> NB> I still get the same message - Failed to display HTML document in 
ISO-8859-1 encoding.
NB> VZ> NB> Tried to add <html> before <head>, didn't help.
NB> VZ> NB> 
NB> VZ> NB> I see there is HTML_Handler_META: wxHTML handler for the <meta> tag
NB> VZ> NB> in HtmlViewer.cpp, should I do it like this?
NB> VZ> 
NB> VZ>  Yes, I think it's the only way.
NB> 
NB> I cannot use UTF-8, or I should have UTF-8 in M source code I assume, as I 
get
NB> "Invalid UTF-8 string in wxConvertToGTK()",

 For which input do you get this? Of course, when you use UTF-8 the input
must be a well-formed UTF-8 string. To do this "safely" (i.e. so that no
editor mangles it) you should use hex escapes in the code, e.g. "\xc0\x.."
instead of using UTF-8 directly.

NB> but using <meta HTTP-EQUIV=\"Content-Type\"
NB> CONTENT=\"text/html;charset=windows-1257\"> works. Can you please check
NB> if it works in Windows?

 This is not a good solution, what if we need characters not present in
this code page?

 Regards,
VZ



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mahogany-Developers mailing list
Mahogany-Developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to