ianw1974 Posted May 26, 2009 Report Share Posted May 26, 2009 I'm having problems with trying to get Polish language support enabled in PHP. Has anyone any ideas on what's required to get this working? I've tried setting ISO-8859-2 as well as mbstring settings and still no support for it - I still get weird characters displayed and not what I'm expecting to see :( Quote Link to comment Share on other sites More sharing options...
tux99 Posted May 27, 2009 Report Share Posted May 27, 2009 (edited) could be a client (browser issue too) or maybe the server itself sends conflicting charset info in the header? You can check the server header with: curl -I http://www.whatever.domain/ Maybe it's an ISO-xxx versus UTF-8 issue? Edited May 27, 2009 by tux99 Quote Link to comment Share on other sites More sharing options...
neddie Posted May 27, 2009 Report Share Posted May 27, 2009 Have you tried to narrow down the problem a bit? - Try a html file from the file system - if this doesn't work it's a HTML or a browser issue. Can you browse other Polish pages? - Try the same html file through your web server - if this doesn't work then tweak your web server. - Try a simple bit of PHP in it - if this doesn't work then look at the PHP side. What are the weird characters displayed, are they pairs of characters instead of single ones? Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted May 27, 2009 Author Report Share Posted May 27, 2009 I don't do programming so a simple bit of PHP would be difficult :D I managed to narrow it down, I was installing vTiger CRM, and inside the config.inc.php was a parameter to change from ISO-8859-1 to UTF8 and then it worked. Normally when I have to go through this Polish character thing with egroupware or some other thing PHP gives me a headache for the changes - even our company simple webpage which was HTML was problematic, but that was down to Apache settings and it wasn't even reading them correctly at first. This one is solved now, but it's a bit hit and miss with this foreign language support :) Quote Link to comment Share on other sites More sharing options...
Lexicon Posted May 27, 2009 Report Share Posted May 27, 2009 (edited) I do not know exactly what's going on but, once I saw no entries in the configuration charset utf-8, ISO-8859-2, ISO-8859-1 Keyboard layout is compatible only with en_US. Convinced by this example APODIO which in the original, works only in three languages. French, Spanish and Italian. For me is a nightmare. How do I enter my password? All pages display correctly, of course, some not, but because of different track widths. http://forum.miacms.org/viewtopic.php?id=304 http://www.php.net/ http://osdir.com/ml/php.drupal.support/2003-11/msg00162.html Edited May 27, 2009 by Lexicon Quote Link to comment Share on other sites More sharing options...
tux99 Posted May 27, 2009 Report Share Posted May 27, 2009 This one is solved now, but it's a bit hit and miss with this foreign language support :) Yes, it's a well known fact that foreign languages are a serious problem for most native English speakers... :P Quote Link to comment Share on other sites More sharing options...
Lexicon Posted May 27, 2009 Report Share Posted May 27, 2009 Add a script on the page indicating that the browser must download the appropriate font in the case of the problem. Learn the language! Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted May 27, 2009 Author Report Share Posted May 27, 2009 Yes, it's a well known fact that foreign languages are a serious problem for most native English speakers... :P Yeah, tell me about it :) ISO-8859-1 all the way :D Quote Link to comment Share on other sites More sharing options...
Lexicon Posted May 27, 2009 Report Share Posted May 27, 2009 (edited) I do not have any other fonts. fonts-ttf-west_european-1.3-20mdv2009.1x11-font-encodings-1.0.2-4mdv2009.1 x11-font-bh-75dpi-1.0.0-7mdv2009.1 xorg-x11-75dpi-fonts-7.3-5mdv2009.1 x11-font-bitstream-75dpi-1.0.0-7mdv2009.1 urw-fonts-2.0-23mdv2009.1 x11-font-bh-lucidatypewriter-75dpi-1.0.0-7mdv2009.1 They are created with this package. The whole system change from UTF to ISO immediately after installation. I edit the file i18n, ....:pl_PL:ISO-8859-2 (/etc/sysconfig/i18n) Executes command as ROOT LC_ALL=pl_PL:ISO-8859-2 export LANG=pl_PL:ISO-8859-2 ......Lex Edited May 27, 2009 by Lexicon Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.