Ulysses

General => Developers Corner => Topic started by: jay209015 on June 12, 2008, 08:34:15 PM

Title: ULib.parseKeyValues Error
Post by: jay209015 on June 12, 2008, 08:34:15 PM
Ok, I have no clue why I'm getting this problem. It worked fine until today, but now for some reason it's a complete failure. No new addons, in fact nothing is new on the server.

Commmand:
Code: [Select]
lua_run players = ULib.parseKeyValues ( file.Read("player_times.txt"))
> players = ULib.parseKeyValues ( file.Read("player_times.txt"))...
lua_run PrintTable(players)
> PrintTable(players)...
ยด??^*#1:

player_times.txt:
Code: [Select]
"players"
{

}

I'm lost  ???
Title: Re: ULib.parseKeyValues Error
Post by: spbogie on June 13, 2008, 05:03:25 PM
Looks like an encoding issue.
Title: Re: ULib.parseKeyValues Error
Post by: jay209015 on June 13, 2008, 06:08:27 PM
So, how would I go about fixing this?
Title: Re: ULib.parseKeyValues Error
Post by: jay209015 on June 15, 2008, 02:48:11 PM
I really need to find a fix for this. I'm very limited w/o it.
Title: Re: ULib.parseKeyValues Error
Post by: Megiddo on June 15, 2008, 08:21:47 PM
I'll look into it tomorrow.
Title: Re: ULib.parseKeyValues Error
Post by: jay209015 on June 16, 2008, 05:29:55 PM
Problem solve, thanks to Megiddo :D

Must save the file as ANSI, not UTF-8