Hi Ralf, Are StartPos, EndPos 0-based or 1-based? And StartLine and EndLine ? Sorry, I couldn't find the info in the document. On Mon, Apr 30, 2012 at 12:27 AM, Edwin Yip <edwin.yip@xxxxxxxxxxxxxxxxxx>wrote: > I'll try to make a test project for you. > > > On Sun, Apr 29, 2012 at 5:26 PM, Delphi Inspiration <delphi@xxxxxxxx>wrote: > >> On 27.04.2012 16:57, Edwin Yip wrote: >> >> > So I think maybe you can just try parsing a unicodeString that contains >> > the © copyright symbol, since I'm quite sure the content I pass >> > to SetSourceBufferAsStr is correctly encoded into UnicodeString (i.e. >> > string in D2010). >> >> If you are passing from a UnicodeString you should use >> TDIHtmlParser.SourceBufferAsStrW() to assign that string to the parser. >> >> Other than that, I added tests to my test suite that show that the "©" >> character is correctly counted into TDIHtmlParser.StartPos and >> TDIHtmlParser.EndPos. >> >> Ralf >> _______________________________________________ >> Delphi Inspiration mailing list >> yunqa@xxxxxxxxxxxxx >> //www.freelists.org/list/yunqa >> >> >> >> > > > -- > Best Regards, > Edwin Yip > > Mind Mapping is as Effortless as Typing > http://www.InnovationGear.com > -- Best Regards, Edwin Yip Mind Mapping is as Effortless as Typing http://www.InnovationGear.com