[Problem] Hebrew writing to file...
#1

Hello guys!

i have a problem..
Quote:

[23:17:08] [CHAT] [Os]Gezer (2): арй оцмйз шч 26 щрйеъ мдецйа аеейш бмй мрщен

It's not writing the Hebrew language to the file.
It happens only in Version 0.3a.
Can fix it?
Reply
#2

Quote:
Originally Posted by Kye
It was previously OEM/ANSI/single-byte ISO-8859-1 in 0.2X, now it's in UTF-8 in 0.3a. A function such as utf8_decode() in php can decode it back to single-byte.
Reply
#3

utf8_decode
How can I use it?
Reply
#4

I also reported it - http://forum.sa-mp.com/index.php?topic=126750.0
Even if you opening the file as UTF-8, the Hebrew chars still not readable.
Dunno if there is any way to fix it...

^ and about utf8_decode, as Kye said in the quote, this is a PHP function, not Pawn.
Reply
#5

Is this from the server_log.txt or from using format() and fwrite()?
Reply
#6

I'm guessing format and fwrite as the server log saves it as:
[HH:MM:SS] [chat] [Name]: Message
Reply
#7

Quote:

Is this from the server_log.txt or from using format() and fwrite()?

yes..
Reply
#8

Quote:
Originally Posted by `DivX
Quote:

Is this from the server_log.txt or from using format() and fwrite()?

yes..
you can't answer yes to a "this or this" question
Reply
#9

right.
i'm using "format() and fwrite()".
Reply
#10

Couldn't you do something like converting the symbols to their value (strval), then when you need to see the symbols (and it is possible to display them), convert them to a string from the values?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)