|
From: <jz...@xi...> - 2014-02-19 04:30:23
|
It is in bytes only for the output of that method ... yes will clarify/correct the documentation.. thanks, ----- Original Message ----- From: Stefan Thurnherr To:, Cc: Sent:Tue, 18 Feb 2014 08:43:32 +0100 Subject:Re: [Vtd-xml-users] Unit of index numbers for getElementFragment() vs. toString() Yes UTF-8 in my case. I fixed my problem at last, it turned out the length is always in bytes, so one of the javadoc must be wrong? If so, please fix the javadoc for the next release. Any other insight appreciated! Best regards, stefan. On 2014-02-18 04:49, jz...@xi... [1] wrote: what is the encoding format? is it UTF8? ----- Original Message ----- From: Stefan Thurnherr [2] To: [3] Cc: Sent: Mon, 17 Feb 2014 11:31:25 +0100 Subject: [Vtd-xml-users] Unit of index numbers for getElementFragment() vs. toString() Hi! I've run into some trouble parsing xml with the multi-byte characters å ö ä. To find the problem, I'd like to get clarification on what unit (byte or character) is used for the element indices: On the one hand, the javadoc for VTDNav.getElementFragment() says: ".... Unit is in byte..." On the other hand, the javadoc for VTDNavtoString() says: "... os the char offset of the segment (not byte) ..." "... len the length of the segment in char (not byte) ..." Which one is wrong/outdated? Or do I need to convert myself? Or have I misunderstood something? Thanks and best regards! stefan. ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk [4] _______________________________________________ Vtd-xml-users mailing list Vtd...@li... [5] https://lists.sourceforge.net/lists/listinfo/vtd-xml-users [6] Links: ------ [1] mailto:jz...@xi... [2] mailto:st....@gm... [3] mailto:vtd...@li... [4] http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk [5] mailto:Vtd...@li... [6] https://lists.sourceforge.net/lists/listinfo/vtd-xml-users |