<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
</STYLE>
<META content="MSHTML 6.00.6000.16809" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=843273813-02042009><FONT face=Arial
color=#0000ff size=2>Oh,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=843273813-02042009><FONT face=Arial
color=#0000ff size=2>How are you getting the text into the CHTMLView
control?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=843273813-02042009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=843273813-02042009><FONT face=Arial
color=#0000ff size=2>ActiveX controls mostly have unicode interfaces, so any non
unicode API to inject the text is probably going to parse the text as ANSI (i.e.
whatever your systems default codepage for non unicode applications is) for the
purpose of converting to unicode that will then be sent to the
control.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=843273813-02042009></SPAN><SPAN
class=843273813-02042009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> truckleaj-windev@yahoo.co.uk
[mailto:truckleaj-windev@yahoo.co.uk] <BR><B>Sent:</B> Thursday, April 02, 2009
3:40 PM<BR><B>To:</B> David Little; Chris Becke; Windows Developers (Mailing
List)<BR><B>Subject:</B> Re: [windev] Problem reading text
files<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: verdana, helvetica, sans-serif">
<DIV>Hi</DIV>
<DIV> </DIV>
<DIV>It isn't a font matter. Arial covers the basic accents. Also, if I set it
to the Arial Unicode MS I get a different symbol showing.</DIV>
<DIV> </DIV>
<DIV>It only seems to work if I use the windows-nnnn charset values.</DIV>
<DIV> </DIV>
<DIV>Andrew<BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: verdana, helvetica, sans-serif"><BR>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><FONT
face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> David Little
<dlittle@coade.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B>
Chris Becke <Chris.Becke@derivco.com>; Windows Developers (Mailing List)
<windev@windev.org><BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B>
Thursday, 2 April, 2009 13:50:38<BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [windev] Problem reading text
files<BR></FONT><BR>I think you have to choose a font with all the correct
characters. Try<BR>Arial Unicode MS as a test. Every font won't have
those characters, and<BR>missing characters are rendered as boxes. I don't
think it's a UTF8<BR>issue.<BR><BR>For a test, try to render <A
href="http://www.columbia.edu/kermit/utf8.html"
target=_blank>http://www.columbia.edu/kermit/utf8.html</A> into<BR>your
CHTMLView box. It has the same phrase in 100 different
languages.<BR><BR>-----Original Message-----<BR>From: <A
href="mailto:windev-bounces@windev.org"
ymailto="mailto:windev-bounces@windev.org">windev-bounces@windev.org</A>
[mailto:<A href="mailto:windev-bounces@windev.org"
ymailto="mailto:windev-bounces@windev.org">windev-bounces@windev.org</A>]
On<BR>Behalf Of Chris Becke<BR>Sent: Thursday, April 02, 2009 4:20 AM<BR>To:
Windows Developers (Mailing List)<BR>Subject: Re: [windev] Problem reading text
files<BR><BR><BR><BR>-----Original Message-----<BR>From: Chris Becke<BR>Sent:
Thursday, April 02, 2009 11:20 AM<BR>To: '<A
href="mailto:truckleaj-windev@yahoo.co.uk"
ymailto="mailto:truckleaj-windev@yahoo.co.uk">truckleaj-windev@yahoo.co.uk</A>'<BR>Subject:
RE: [windev] Problem reading text files<BR><BR>Have you set the meta-tag
specifying the HTML encoding to be UTF-8 ?<BR><BR><meta
http-equiv="Content-Type" content="text/html;charset=utf-8" ><BR><BR>The HTTP
specification specifically says that HTML documents with no<BR>meta tag need to
be parsed as the traditional western EU
(windowsnnnn)<BR>codepage.<BR><BR>CHTMLView should be doing little more than
instantiating a<BR>Shell.Explorer ActiveX control - so im not sure why it would
render fine<BR>in IE7 but not the HTMLView...<BR><BR>-----Original
Message-----<BR>From: <A href="mailto:windev-bounces@windev.org"
ymailto="mailto:windev-bounces@windev.org">windev-bounces@windev.org</A>
[mailto:<A href="mailto:windev-bounces@windev.org"
ymailto="mailto:windev-bounces@windev.org">windev-bounces@windev.org</A>]
On<BR>Behalf Of <A href="mailto:truckleaj-windev@yahoo.co.uk"
ymailto="mailto:truckleaj-windev@yahoo.co.uk">truckleaj-windev@yahoo.co.uk</A><BR>Sent:
Thursday, April 02, 2009 10:11 AM<BR>To: Serge Wautier; WinDev<BR>Subject: Re:
[windev] Problem reading text files<BR><BR>The other problem I have is that
CHtmlView doesn't seem to like the<BR>UFT-8 encoding very much.<BR><BR>If I set
the file as that, including the declaration line at the top,<BR>and right-click
the view the encoding is set to UTF-8 but the italian<BR>accents show as
boxes.<BR><BR>The only way I have got the variuous languages to work is by using
a<BR>charset of windowsnnnn accordingly. Then the HTMLView renders
the<BR>accents.<BR><BR>But if was my understanding that UTF-8 was what we should
be using these<BR>days. The same file renders fine in IE7, not not in the
web-browser<BR>control. I tried to google for CHtmlView / encoding / utf-8 and
couldn't<BR>see anything about this.<BR><BR>So I have stayed with the relevant
windowsnnnn values based upon the<BR>language of my program
UI.<BR><BR>Andrew<BR>########################################################################<BR>#####################<BR>The
information transmitted is intended only for the person or entity to<BR>which it
<BR>is addressed and may contain confidential and/or privileged material.
<BR>Any review, retransmission, dissemination or other use of, or taking
of<BR>any action<BR>in reliance upon, this information by persons or entities
other than the<BR>intended <BR>recipient is prohibited. If you received this in
error, please contact<BR>the sender and<BR>delete the material from any
computer.<BR><BR>Furthermore, the information contained in this message, and
any<BR>attachments thereto, is<BR>for information purposes only and may contain
the personal views and<BR>opinions of the <BR>author, which are not necessarily
the views and opinions of the
company.<BR>########################################################################<BR>#####################<BR>--
<BR>Windev mailing list at <A href="mailto:Windev@windev.org"
ymailto="mailto:Windev@windev.org">Windev@windev.org</A><BR><BR>Lost your
password? Need to unsubscribe or change your delivery<BR>options?
<BR>Go to <A href="http://lists.windev.org/mailman/listinfo/windev"
target=_blank>http://lists.windev.org/mailman/listinfo/windev</A><BR>--<BR>Search
the Windev Archives - www.windev.org<BR>-- <BR>Windev mailing list at <A
href="mailto:Windev@windev.org"
ymailto="mailto:Windev@windev.org">Windev@windev.org</A><BR><BR>Lost your
password? Need to unsubscribe or change your delivery options?
<BR>Go to <A href="http://lists.windev.org/mailman/listinfo/windev"
target=_blank>http://lists.windev.org/mailman/listinfo/windev</A><BR>--<BR>Search
the Windev Archives - www.windev.org<BR></DIV></DIV></DIV>
<FONT face=Arial size=1><SPAN><EM> </EM>
<P></P><EM>
<HR>
</EM>
<P></P>
<P><FONT face="Times New Roman" size=3> </FONT><EM>The information
transmitted is intended only for the person or entity to which it is addressed
and may contain confidential and/or privileged material. Any review,
retransmission, dissemination or other use of, or taking of any action in
reliance upon, this information by persons or entities other than the intended
recipient is prohibited. If you received this in error, please contact the
sender and delete the material from any computer.</EM></SPAN></P>
<P><SPAN><EM>Furthermore, the information contained in this message, and any
attachments thereto, is for information purposes only and may contain the
personal views and opinions of the author, which are not necessarily the views
and opinions of the company.</EM></SPAN><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'"></P>
<P></P><EM>
<HR>
</EM>
<P></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in"><FONT
face="Times New Roman" size=3></FONT></SPAN> </P></FONT>
</BODY></HTML>