[fpc-devel] HTML string to TFPColor
    Michael Van Canneyt 
    michael at freepascal.org
       
    Sun Jul 23 23:32:05 CEST 2017
    
    
  
On Sun, 23 Jul 2017, Werner Pamler wrote:
> Am 23.07.2017 um 18:09 schrieb Michael Van Canneyt:
>> This exists:
>>
>> function ResolveHTMLEntityReference(const Name: WideString;  var 
>> Entity: WideChar): Boolean;
>>
>> is in unit htmldefs, fcl-xml package.
>
> Thank you. Seeking more carefully would have saved me a lot of tedious 
> typing... Replaced my own routine by this one, and it is working fine. 
> BTW: Wouldn't it be useful to overload it with a utf8 version?
It could be. Patches gladly accepted.
>
> 2nd remark: The sax unit in the same folder is also WideString-only. 
> From the Lazarus point of view, UTF8 would be preferrable as well. I 
> remember older experiments trying to read Excel files with sax which 
> suffered from a significant slowdown because of widestring-to-utf8 
> conversions.
The whole XML implementation in FPC is using Unicodestring. 
Changing the sax unit to UTF8 does not make sense.
Michael.
    
    
More information about the fpc-devel
mailing list