gylys Posted September 12, 2006 Share Posted September 12, 2006 Hello to all, I need do the translation WHCMS to Lithuanian language, But can’t find how to set default encoding to utf-8. Thanks in advance 0 Quote Link to comment Share on other sites More sharing options...
monoblue Posted September 14, 2006 Share Posted September 14, 2006 Hello to all, I need do the translation WHCMS to Lithuanian language, But can’t find how to set default encoding to utf-8. Thanks in advance Yes theres more ppl need this available for UTF-8 charset, wheres whmcs shows error if encoded language file is in UTF-8 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted September 14, 2006 WHMCS CEO Share Posted September 14, 2006 You can set the charset to UTF-8 by just adding the following line between the <head> tags in the header.tpl template file: <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> Matt 0 Quote Link to comment Share on other sites More sharing options...
atourino Posted September 18, 2006 Share Posted September 18, 2006 Hi Matt, That is part of the solution, but the bigger issue is that the language files are encoded in whatever PHP uses to represent strings (ISO-8859-1, I believe?) and not UTF-8. Thus, when you try to use the smarty template strings in a xhtml file that is charset=UTF-8 the ISO-8859-1 strings from the language files appear as garbage. One solution is to encode the problematic letters in the language files as HTML entities e.g.: á as á but that is a pain in the behind. C'est la vie, I suppose, but it would be nice to have native support for UTF-8 strings in WHMCS for values that come from the DB such as client info and such. Cheers from Panama. Antonio 0 Quote Link to comment Share on other sites More sharing options...
makkie Posted September 20, 2006 Share Posted September 20, 2006 How could I change charset for Admin area? It ISO-8859-1 as default and I don't know how to change it. I'll get a license as soon as resolved this or I'll wait again and deal with Modernbill. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted September 20, 2006 WHMCS CEO Share Posted September 20, 2006 A configurable option is now available this for WHMCS to allow changing this. It will be officially released in V2.5.8, but if you need it before then just open a ticket requesting it. Matt 0 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.