Jump to content
Sign in to follow this  
Spartanicus

UTF-8 file reading issue?

Recommended Posts

Spartanicus

When trying to read this file: http://homepage.ntlworld.ie/spartanicus/override.ini with this script:

$var = IniReadSection("c:\tmp\override.ini", "Overrides")

If @error Then

MsgBox(4096, "", "Error occurred, probably no INI file.")

Else

For $i = 1 To $var[0][0]

MsgBox(4096, "", "Key: " & $var[$i][0] & @CRLF & "Value: " & $var[$i][1])

Next

EndIf

It throws an error. If I replace the ini file with an ANSI ini it works. I'm not unicode literate at all, anyone know what is going on here?

Share this post


Link to post
Share on other sites
Spartanicus

[...]

It throws an error. If I replace the ini file with an ANSI ini it works. I'm not unicode literate at all, anyone know what is going on here?

Please ignore, newb stupidity.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×