Compile crylic UTF-8 Language

When I compile crylic (UTF-8  characters) language the result  in my forum look like unreadable   ?????  ??? symbols.

Please help   

Quote · 8 Feb 2012

It means that encoding of your language files is not UTF-8.

Rules → http://www.boonex.com/terms
Quote · 9 Feb 2012

First I edit language in modules/boonex/forum/integrations/base/langs/en.php file which is UTF-8 formated. 

For example I  change in array $GLOBALS['L']
.... 

'My Topics' => 'Моите теми',

...
(I use cyrillic characters) 

Then I click link -> Compile Language:en and the compiler script convert wrong "'Моите теми"(My Topics) to " ????? ????" characters


 

Quote · 9 Feb 2012

When you translated this file:

modules/boonex/forum/integrations/base/langs/en.php

you've used non UTF-8 encoding. Dolphin uses UTF-8 encoding by default, and if text is not displayed in UTF-8 encoding then it is not UTF-8.

You can try to switch encodings in browser to determine encoding you've used. 

Rules → http://www.boonex.com/terms
Quote · 9 Feb 2012

I trace the problem this a boonex bug.

When converted function start to work it call other function in other php files wich are not UTF-8 and somewhere in require_once process broke the language array.  

Quote · 10 Feb 2012

Can you specify it more descriptive? so we can try to reproduce it... 

Also if you can send me translated file - it would be great.

Rules → http://www.boonex.com/terms
Quote · 11 Feb 2012

1step -> in original file modules/boonex/forum/integrations/base/langs/en.php change in array $GLOBALS['L']  

....

   'My Topics' => 'Моите теми' (Bulgarian language) 

.....

 

2step ->  Then I click link in Manage Forum page -> Compile Language:en

call with AJAX chained php files: 

modules/boonex/forum/index.php -> 

modules/boonex/forum/classes/en/Admin.php -> 

modules/boonex/forum/classes/BxLang.php -> 

modules/boonex/forum/integrations/base/langs/en.php

in this require_once() process in my server  my translation was cracked. In array this 'My Topics' => 'Моите теми' cracked to 'My Topics' => '????? ????' 

 

 

3step -> in my case I solved the problem 

* in Admin.php i moved the class BxLang

* in class BxLang -> function _langReplaceHandler ($m)  I add my language array from en.php

* and edit some parts of the php code

after Compile Language:en everything is OK

 

...  sorry I have not time to look for other solutions

... may be my server is not optimized and only I have this problem

 

sorry for my English

Good Luck :)  

Quote · 11 Feb 2012

Yes, I was able to reproduce it using this steps. But I've noticed that the file is not in utf-8, after I converted file into utf-8 encoding - it starts showing as normal cyrillic text without '????' symbols.

If you want to check it by yourself, create 'check.php' file in modules/boonex/forum/integrations/base/langs folder:

<?php
header ('Content-Type: text/html; charset=UTF-8');
require('en.php');
foreach ($GLOBALS['L'] as $k => $v)
echo '<p>' . $v . '</p>';
 

and open it in browser:

http://your-site.com/modules/boonex/forum/integrations/base/langs/check.php

The text is printed as it is - without any conversions using utf-8 encoding.

If you will see the same ???? symbols - you have wrong encoding.

 

Rules → http://www.boonex.com/terms
Quote · 14 Feb 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.