vBulletin 4, the most powerful community software + vBSEO 3.5, the ultimate SEO solution = Your ultimate platform for 2010 and beyond. Click below to learn more.

Results 1 to 5 of 5

Custom characters problem

This is a discussion on Custom characters problem within the Troubleshooting forums, part of the vBSEO SEO Plugin category; I have an russian language forum running in UTF8. i have added this to the config_vbseo.php $vbseo_custom_char_replacement = array( 'А' ...

  1. #1
    Member
    Real Name
    Niko
    Join Date
    Nov 2007
    Posts
    35

    Custom characters problem

    I have an russian language forum running in UTF8.

    i have added this to the config_vbseo.php

    $vbseo_custom_char_replacement = array(
    'А' => 'A',
    'а' => 'a',
    'Б' => 'B',
    'б' => 'b',
    'В' => 'V',
    'в' => 'v',
    'Г' => 'G',
    'г' => 'g',
    'Д' => 'D',
    'д' => 'd',
    'Е' => 'E',
    'е' => 'e',
    'Ё' => 'Jo',
    'ё' => 'jo',
    'Ж' => 'Zh',
    'ж' => 'zh',
    'З' => 'z',
    'з' => 'z',
    'И' => 'I',
    'и' => 'i',
    'Й' => 'J',
    'й' => 'j',
    'К' => 'K',
    'к' => 'k',
    'Л' => 'L',
    'л' => 'l',
    'М' => 'M',
    'м' => 'm',
    'Н' => 'N',
    'н' => 'n',
    'О' => 'O',
    'о' => 'o',
    'П' => 'P',
    'п' => 'p',
    'Р' => 'R',
    'р' => 'r',
    'С' => 'S',
    'с' => 's',
    'Т' => 'T',
    'т' => 't',
    'У' => 'U',
    'у' => 'u',
    'ф' => 'F',
    'ф' => 'f',
    'Х' => 'H',
    'х' => 'h',
    'Ц' => 'C',
    'ц' => 'c',
    'Ч' => 'Ch',
    'ч' => 'ch',
    'Ш' => 'Sh',
    'ш' => 'sh',
    'Щ' => 'Th',
    'щ' => 'th',
    'ъ' => '-',
    'Ы' => 'Y',
    'ы' => 'y',
    'ь' => '-',
    'Э' => 'Ey',
    'э' => 'ey',
    'Ю' => 'Ju',
    'ю' => 'ju',
    'Я' => 'JA',
    'я' => 'ja'
    );
    but now, after the edit i can not use the forum, i have the following error:

    Unable to add cookies, header already sent.
    File: /home/jewropa/public_html/includes/config_vbseo.php
    Line: 1

    p.s. i saved the config_vbseo.php in utf8 format

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,543
    Hello,

    you should not save php files in UTF-8 format as that may cause PHP parse errors. At least, remove UTF identifier bytes at the top of the file.
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


  3. #3
    Member
    Real Name
    Niko
    Join Date
    Nov 2007
    Posts
    35
    ok, but in which coding should i save, cause if i let it standard coded the russian languages gonna broken (it saves as question marks)

  4. #4
    Member
    Real Name
    Niko
    Join Date
    Nov 2007
    Posts
    35
    please, can you send me a modified config_vbseo.php file with this content in right code:

    $vbseo_custom_char_replacement = array(
    'А' => 'A',
    'а' => 'a',
    'Б' => 'B',
    'б' => 'b',
    'В' => 'V',
    'в' => 'v',
    'Г' => 'G',
    'г' => 'g',
    'Д' => 'D',
    'д' => 'd',
    'Е' => 'E',
    'е' => 'e',
    'Ё' => 'Jo',
    'ё' => 'jo',
    'Ж' => 'Zh',
    'ж' => 'zh',
    'З' => 'z',
    'з' => 'z',
    'И' => 'I',
    'и' => 'i',
    'Й' => 'J',
    'й' => 'j',
    'К' => 'K',
    'к' => 'k',
    'Л' => 'L',
    'л' => 'l',
    'М' => 'M',
    'м' => 'm',
    'Н' => 'N',
    'н' => 'n',
    'О' => 'O',
    'о' => 'o',
    'П' => 'P',
    'п' => 'p',
    'Р' => 'R',
    'р' => 'r',
    'С' => 'S',
    'с' => 's',
    'Т' => 'T',
    'т' => 't',
    'У' => 'U',
    'у' => 'u',
    'ф' => 'F',
    'ф' => 'f',
    'Х' => 'H',
    'х' => 'h',
    'Ц' => 'C',
    'ц' => 'c',
    'Ч' => 'Ch',
    'ч' => 'ch',
    'Ш' => 'Sh',
    'ш' => 'sh',
    'Щ' => 'Th',
    'щ' => 'th',
    'ъ' => '-',
    'Ы' => 'Y',
    'ы' => 'y',
    'ь' => '-',
    'Э' => 'Ey',
    'э' => 'ey',
    'Ю' => 'Ju',
    'ю' => 'ju',
    'Я' => 'JA',
    'я' => 'ja'
    );

    p.s. at time i run my forum without special chars replace, so you can not see the errors on the forumhome

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    24,543
    Replied to your ticket.
    update: the following code in functions_vbseo_url.php worked to convert utf8 to win-1251 and then apply custom characters replacement:
    PHP Code:
      $text=iconv("UTF-8""WINDOWS-1251",$text); 
    Oleg Ignatiuk / Crawlability Inc.
    Sneek Preview Video of the new Control Panel

    vBSEO 3.5 RC2 (Final)- Released for your Evaluation


Similar Threads

  1. Custom Download Problem
    By rishimodi1 in forum Troubleshooting
    Replies: 4
    Last Post: 11-21-2007, 10:50 PM
  2. special characters in member profiles problem
    By dutchbb in forum Troubleshooting
    Replies: 12
    Last Post: 02-15-2007, 11:38 AM
  3. Characters that need replacing for Non English Characters
    By Olney in forum Sitemap Features Archive
    Replies: 0
    Last Post: 05-25-2006, 11:19 PM