Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 Other hexagora products
 Programs (Programmi)
 clsUniFile - ReadUTF8Line (V. 4.2)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  


9 Posts

Posted - 03 Mar 2014 :  06:48:54  Show Profile  Visit catweazle's Homepage  Reply with Quote
I just stepped into a problem which I want to share:
I read a file with utf-8 characters, it contains also empty lines.
When clsUniFile has read the empty line ".ReadUTF8Line(sRet)", the passed variable sRet still contains the previous value.
When reading an empty line in an ANSI file with .ReadAnsiLine, the sRet is empty instead (as expected).
So I suggest always to reset sRet = "" before .ReadUTF8Line(sRet)

Sorry - the .ReadUnicodeLine i did not test.

Site Admin

3364 Posts

Posted - 03 Mar 2014 :  23:51:11  Show Profile  Visit s.dav's Homepage  Reply with Quote
Hello Cat,

can you send me a sample so I'll check and fix the issue?

Regards, Davide
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000