Page 1 of 1
national signs
Posted: Thu Sep 19, 2013 12:08 am
by unsec
initialize.inc.php
Code: Select all
if (NJB_WINDOWS) define('NJB_DEFAULT_CHARSET', ($cfg['default_charset'] == '') ? 'ISO-8859-1' : $cfg['default_charset']);
else define('NJB_DEFAULT_CHARSET', ($cfg['default_charset'] == '') ? 'UTF-8' : $cfg['default_charset']);
I have problem with Polish national signs -> ąęśćżźółń
when I change ISO-8859-1 to 8859-2 -> NJB call UTF-8
so when I change ISO-8859-1 to UTF-8
artist - Alizée
in NJB 6 - blank place, no link
Polish national signs - wrong too
brgs
Re: national signs
Posted: Thu Sep 19, 2013 9:29 pm
by wbartels
This is not a netjukebox bug!
PHP 5.x can't read multibyte filesystem characters from a Windows operating system.
But can from Linux, Unix and OS-X:
https://live.netjukebox.nl/index.php?ac ... uehgiui3f9
Re: national signs
Posted: Thu Sep 19, 2013 11:27 pm
by unsec
Now I know, You have right and you have not. Why? Couse we (you and me) have WRONG version of our PHP (not unicode version of PHP). I'm using last version of WAMP serwer and I will write to author to recompile this serwer.
so, here is article about this problems like ours. Generally, PHP MUST correct working in every place, Windows, Unix, Mac.
http://evertpot.com/filesystem-encoding-and-php/
Ps. probably here is better explanation of the right way (recompile PHP with UNICODE version of Win32 API) -
http://stackoverflow.com/questions/9659 ... on-windows
Re: national signs
Posted: Mon Sep 23, 2013 6:40 pm
by wbartels
If you have a working
Windows PHP unicode version than set the
default charset to
UTF-8 in the
config.inc.php file.
Code: Select all
// +------------------------------------------------------------------------+
// | Default characterset |
// +------------------------------------------------------------------------+
// | When leaving empty it will use the ISO-8859-1 characterset for Windows |
// | and UTF-8 for all other operating systems. |
// +------------------------------------------------------------------------+
$cfg['default_charset'] = 'UTF-8';
Re: national signs
Posted: Tue Sep 24, 2013 12:45 am
by unsec
maybe my problem will gone couse my target is locate netjukebox on Synology serwer. Or new problems will come
))