Problem with file writing...
#1

Hey,

My server is using files to save some information (player stats, server logs, etc).
But, when I started to use SA-MP 0.3 RC8, the written chars is not on hebrew - the language that I using with the functions...

There is something that I can do to fix it?

Thanks for helpers.
Reply
#2

If you use format() before fwrite() the characters are encoded in UTF-8. When you open the file in notepad open it as UTF-8 not ANSI.
Reply
#3

I'm using format() before fwrite().
Well, I tried what you adviced, and the characters was changed, but it still not Hebrew and not readable.
If the 'problem' is in format(), i'll try to use strmid() or something different then format().
Reply
#4

Hmm... a lot of files writing in my gamemode using format().
There is any solution?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)