• Resolved Krushkov

    (@krushkov)


    Hello,

    Our network is located in a country that uses the Cyrillic alphabet ( CP-1251 encoding ). After connecting from the Kiwi client, everything comes out in hieroglyphs. My question is how can this be fixed? The wordpress plugin is very good congrats for that. Saves a lot of work.

    Thank you!

    Regards,

    Plamen Krushkov

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Krushkov

    (@krushkov)

    Hello,

    I found a solution for Cyrillic.

    The solution is: In the folder with name public have file with name index.php

    You need to edit this file by putting this line inside

    $url = $url."&encoding=cp1251";

    You must put it after this line

    $url = $url."?nick=".str_replace("?", rand(10000,99999), get_option('kiwichat_nick'));

    and the file index.php should look like this:

    <?php
    
    defined('ABSPATH') or die("Do not change anything here!");
    function kiwichat_page( $atts ) {
        $url = KIWICHAT_URLBASE."nextclient/?";
        if (get_option('kiwichat_style') != '')
            $url = $url."theme=".get_option('kiwichat_style');
    	  if (get_option('kiwichat_server') != '')
            $url = $url."#irc://".get_option('kiwichat_server');
    	
    	  $channels = isset($atts['chan']) ? $atts['chan'] : '';
        if ($channels == '')
            $channels = get_option('kiwichat_chan');
        if ($channels != '')
            $url = $url."/".$channels;
    
        if (get_option('kiwichat_nick') != '')
            $url = $url."?nick=".str_replace("?", rand(10000,99999), get_option('kiwichat_nick'));
            $url = $url."&encoding=cp1251";
    ?>
    <center>
            <iframe
                marginwidth="0"
                marginheight="0"
                src="<?php echo $url; ?>"
    <?php
        if (get_option('kiwichat_width') != '')
            echo "width=\"".get_option('kiwichat_width')."\"";
        if (get_option('kiwichat_height') != '')
            echo "height=\"".get_option('kiwichat_height')."\"";
    ?>
                scrolling="no"
                frameborder="0">
            </iframe>
    <?php
    }
    function kiwichat( $atts ) {
        ob_start();
        kiwichat_page( $atts );
        return ob_get_clean();
    }
    add_shortcode( 'kiwichat', 'kiwichat' );
    ?>
    Plugin Author KiwiChat

    (@kiwichat)

    Hi @krushkov Thank you for reporting this. I was able to reproduce the issue.

    You can track it here https://github.com/KiwiChat/wp-kiwichat/issues/2

    Thread Starter Krushkov

    (@krushkov)

    Hello,

    Sorry, but the issue still exists. When update to new version 6.1 and type in Coding: cp1251 did not work. Continue to see all text in ????????

    Thank you,

    Plamen Krushkov

    Thread Starter Krushkov

    (@krushkov)

    Hello,

    Now the link is formed as follows:

    https://kiwiirc.com/nextclient/?theme=sky#irc://irc.cyberircd.net/#Bulgaria,#Cyber,#30-40,#Bourgas,#Plovdiv,#Sofia,#Vip,#gyuvetch,#dev?nick=CyberWeb_12842&cp1251"

    As at the end of the link it ends like this: &cp1251

    The link should end with &encoding=cp1251 to work properly

    The link should look like this:

    https://kiwiirc.com/nextclient/?theme=sky#irc://irc.cyberircd.net/#Bulgaria,#Cyber,#30-40,#Bourgas,#Plovdiv,#Sofia,#Vip,#gyuvetch,#dev?nick=CyberWeb_12842&encoding=cp1251"
    Plugin Author KiwiChat

    (@kiwichat)

    Thanks @krushkov I hope it works for you

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problem with Cyrillic encoding’ is closed to new replies.