Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 10 of 11

Thread: foreign characters when switching between languages

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Senior Member
    Join Date
    Feb 2011
    Posts
    138

    Default

    Thanks Kamil

  2. #2
    Senior Member
    Join Date
    Feb 2011
    Posts
    138

    Default

    Any progress on this one Kamil?

  3. #3
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    hello,
    still working on it. thanks for your patience.
    We will write here all solution
    thanks

  4. #4
    Senior Member
    Join Date
    Feb 2011
    Posts
    138

    Default

    Cool. Thanks Kamil.

  5. #5
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Hello. I just started working on it and after some analyze I realized that there is no bug at all... I will still check possibility of changing the behavior, now here is explanation what happens:
    - your translated pages are in UTF-8 so browsers shows special characters from URL in nice way (excluding IE which do not honor this standard)
    - your original pages are not un UTF-8 so browser do not display special characters in nice way and vBET do not changes URLs for not translated pages

    I will check how it will behave if vBET re-encode URL even for not translated page - I cannot predict it because page encoding and URL encoding will differ. If it will help I will give you quick fix and probably will not include it in official release (or configurable - need to check first results and think about possible effects). If it will not help it will stay as it is because it is browser display issue (just like IE do not shows special characters in nice way at all - maybe newest does it didn't check it).

    I will give you feedback in few moments.
    Last edited by vBET; 04-05-11 at 13:25.

  6. #6
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    OK so - I know exactly what is going on now. Described behavior is intended. In case of original pages vBET encodes URLs to safe UTF-8 - otherwise you would see broken characters on your forum page. It is because when you show string in other encoding that is the page then it will be decoded in wrong way - so you see broken characters. That is why in vbenterprisetranslator_functions_bbcode.php we have this code:
    Code:
    if (!$_REQUEST['language'] && vB_Template_Runtime::fetchStyleVar('charset') != 'utf-8') {
    $translated = vbet_encodeToSafeUTF8($translated);
    }
    If you comment it then you will see nice URL in browser on not translated page with special characters, but those special characters will be broken on forum page. The issue is that vBSEO do not allows to recognize which URL generation is for page and which for browser URL. So we are not able to encode to safe UTF-8 only for URLs to view and leave as it is for broswer. It is vBSEO API limitation and it have to stay this way. This is not a bug - this is indented feature which allows to have nice view with special characters on not translated limited by vBSEO API which makes requests for URL rendering.

    At this moment issue closed. If you have some comments, ideas, questions - just feel free to write We can reopen it if some crucial information will appear. I also move it to troubleshooting section as it is not recognized as bug.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •