novo Posted August 31, 2014 Share Posted August 31, 2014 Hello, I'm having troubles when reading some map script's files because there's an ASCII character (239) appearing there, as you can see on the following images: (That symbol appearing at the beginning) http://i.gyazo.com/31cb02fa5f2e19454f714fbad07667b5.png http://i.gyazo.com/dfbead946c52e9e7dc5494eb3ca65ad9.png Here's the way I'm reading and either outputting the file's content: local hFile = fileOpen(":"..resource.."/"..name, true) if hFile then outputConsole(fileRead(hFile, fileGetSize(hFile)), root) fileClose(hFile) end And this is the file I'm reading: http://www.filedropper.com/music (I've added a download link to make sure it's the same content any time) So basically, that character is appearing and I'm not able to use loadstring because it's returning an error due to the same. I've tried by removing it but another character is appearing then (some sort of arabic character) which I'm not able to remove. I've used Linux Server 1.4 32 and 64 bits and Linux Server 1.3.5 and I've got the same problem on all. Thanks in advance. Link to comment
xXMADEXx Posted August 31, 2014 Share Posted August 31, 2014 Try reading this viewtopic.php?f=148&t=74970 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now