israely charecters not showing properly

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

ofek
Posts: 4
Joined: 23 Jun 2018, 13:22

israely charecters not showing properly

Postby ofek » 23 Jun 2018, 13:29

When i try to change area names in config.xml to hebraw charecters i get this in the area list.

Image

How can i make it show the letters correctly?
User avatar
Lapo
Site Admin
Posts: 20113
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: israely charecters not showing properly

Postby Lapo » 25 Jun 2018, 08:33

Hi,
have you tried printing them in the Flash console to see if they show up correctly?

What are those by the way? User names?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
ofek
Posts: 4
Joined: 23 Jun 2018, 13:22

Re: israely charecters not showing properly

Postby ofek » 01 Jul 2018, 09:48

those are room names in avatarchat example
how can i print them in the Flash console so i can see if they show up correctly?
i need the as2 code and where to put it.
i am using smartfoxserverpro.
usernames show correctly in hebraw.
Image
the hebraw text in the image doesnt mean something it is just gibberish.
User avatar
Lapo
Site Admin
Posts: 20113
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: israely charecters not showing properly

Postby Lapo » 02 Jul 2018, 07:49

Hi
make sure the .xml files are saved in UTF-8 mode, otherwise hebrew characters will not show correctly.

Hope it helps
Lapo

--

gotoAndPlay()

...addicted to flash games
ofek
Posts: 4
Joined: 23 Jun 2018, 13:22

Re: israely charecters not showing properly

Postby ofek » 02 Jul 2018, 08:26

well i changed it to utf 8 format and when i tried openning the server this happend
cmd output:
|::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
| |
| ...::: SmartFoxServer :::... |
| Multiplayer Socket Server |
| version 1.6.6 |
| --- |
| (c) 2004 - 2009 gotoAndPlay() |
| http://www.smartfoxserver.com |
| http://www.gotoandplay.it |
| |
|::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|

Invalid input: `' (0xfeff), SystemID='file:.', Line=1
at net.n3.nanoxml.XMLUtil.errorInvalidInput(XMLUtil.java:518)
at net.n3.nanoxml.StdXMLParser.scanData(StdXMLParser.java:245)
at net.n3.nanoxml.StdXMLParser.parse(StdXMLParser.java:203)
at it.gotoandplay.smartfoxserver.lib.ConfigReader.readCfgFile(ConfigReader.java:117)
at it.gotoandplay.smartfoxserver.lib.ConfigReader.readServerConfig(ConfigReader.java:125)
at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:566)
Problems in config file: Invalid input: `' (0xfeff), SystemID='file:.', Line=1
it.gotoandplay.smartfoxserver.exceptions.ConfigurationException: Invalid input: `' (0xfeff), SystemID='file:.', Line=1
at it.gotoandplay.smartfoxserver.lib.ConfigReader.readServerConfig(ConfigReader.java:149)
at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:566)

Errors found in configuration files.
Unable to start the server.


Shutting down server...




when I change the format back to ANSI the server doesn't give me errors and works perfectly.
any fixes?
in case you need the config.xml in order to fix the problem and give it back to me here is a link:
https://f2h.io/341ek7xax5ds


in case you need to change the language in f2h there is a globe icon up top hover over it and click the appropriate language
User avatar
Lapo
Site Admin
Posts: 20113
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: israely charecters not showing properly

Postby Lapo » 02 Jul 2018, 09:22

Hi,
the file you have uploaded is saved in "UTF-8 with BOM". This is what causes the error.

Try and save the file as just UTF-8, or UTF-8 no BOM, it will fix the problem.

If you want to learn more:
https://en.wikipedia.org/wiki/Byte_order_mark

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
ofek
Posts: 4
Joined: 23 Jun 2018, 13:22

Re: israely charecters not showing properly

Postby ofek » 02 Jul 2018, 09:42

it works thank you can close this topic
Image
for people who have this problem download notepad++ open it and In the top menu select Encoding > Convert to UTF-8
press ctrl+s or click floppy drive icon and run the server again.

I used regular notepad so it didn't work
regular notepad means it came with windows.
User avatar
Lapo
Site Admin
Posts: 20113
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: israely charecters not showing properly

Postby Lapo » 02 Jul 2018, 10:02

Yes, Notepad++ is a good all-purpose editor for Windows.
If you're on Mac you can download TextWrangler.

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 11 guests