readln() and the "£" sign

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
teedoubleyou
Posts: 6
Joined: December 12th, 2005, 5:29 am

When using readln(), if trying to read in a text file of over 50 lines, I get an interesting problem.

The readln() reads the string up until but not including the £ character.

Anyone experienced this before? And if so, any ideas? I do want to read in the whole string.
Mylenium
Posts: 139
Joined: July 20th, 2005, 12:07 am

Maybe unicode related. Have you some catch to ignore unknown characters? I also think there is some special function you need to define to make use of special characters. Sorry I'm not of more help. Haven't done scripting in a while.

Mylenium
[Pour Mylène, ange sur terre]
User avatar
redefinery
Posts: 112
Joined: April 1st, 2005, 8:16 pm
Location: CA
Contact:

I can't repro the problem with a simple text file with the £ character in it. Is there some other special/binary character on the same line?

Maybe setting the File encoding attribute to "BINARY" or something appropriate for the encoding of the file would help?

Jeff
teedoubleyou
Posts: 6
Joined: December 12th, 2005, 5:29 am

The file is a tab delimited excel sheet in txt format.

Encountering a £ sign where the txt file only contains 1 line doesn't seem to be a problem, it only occurs when there seems to be over 20 lines of text. :(
User avatar
redefinery
Posts: 112
Joined: April 1st, 2005, 8:16 pm
Location: CA
Contact:

My original test was with a text file (not including tabs) in which the £ sign was on line 50. I added some tabs to the file and still don't have a problem. Maybe you can post some of your code or sample file?

Jeff
Post Reply