Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Display of Japanese html file using wxHtmlWindow

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Display of Japanese html file using wxHtmlWindow
#8063
Posted by: 2006-04-05 07:43:40
Hi,

I am using wxX11-2.4.2 on Solaris2.6 platform. I am using wxHtmlWindow to display htmlpages. When I try to
display html pages in Japanese language with shift-jis encoding, found this encoding does not exist on the solaris running X11. So by using wxFontEnumerator::EnumerateEncodings() function found the system has jisx0208.1983-0 (available in facename 'fixed') and jisx0201.1976-0 (available in facename 'fixed').  By the command "xlsfonts|grep jisx", confirmed these fonts  exists.

So tried to display html page in this encoding. My html page source with mata tags having charset information is below.
<meta http-equiv="Content-Type" content="text/html; charset=jisx0201.1976-0" />.

But for this encoding wxFontMapper::CharsetToEncoding() function complains that this "The charset is unknown".
Looks like wxFontMapper does not support this encoding though wxFontEnumerator::EnumerateEncodings() list this encoding. So I am unable to display japanese language in this encoding. Is there any way to display japanese language using the encoding(jisx0208.1983-0 or jisx0201.1976-0). If this is not feasible, is there any other way to display japanese langauge ???

Thanks
Sen
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Thu 2024-3-28  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0