encoding

nonso

Avatar: nonso

2012-12-02 18:09

Hello! I use windows-1251 and if I write the headlines in the sidebar in Russian, then in the search bar see a.jino.ru / negozio / index.php???????????? (exclamation marks in the diamond) to encode utf-8 everything works fine, but I can not change the encoding.
What do I do?

» Quick.Cart v5.x

interkob

Avatar: interkob

2012-12-04 16:14

I'm not sure about your problem... If you see wrong sybmols in URL name, than try to open core/libraries/trash.php and find:

Array( 'ś''ą''ź''ż''ę''ł''ó''ć''ń''Ś''Ą''Ź''Ż''Ę''Ł''Ó''Ć''Ń''á''č''ď''é''ě''í''ň''ř''š''ť''ú''ů''ý''ž''Á''Č''Ď''É''Ě''Í''Ň''Ř''Š''Ť''Ú''Ů''Ý''Ž''ä''ľ''ĺ''ŕ''Ä''Ľ''Ĺ''Ŕ''ö''ü''ß''Ö''Ü' ),
    Array( 
's''a''z''z''e''l''o''c''n''S''A''Z''Z''E''L''O''C''N''a''c''d''e''e''i''n''r''s''t''u''u''y''z''A''C''D''E''E''I''N''R''S''T''U''U''Y''Z''a''l''l''r''A''L''L''R''o''u''S''O''U' ),



Here you should insert russian symbols in the first Array. In the second Array insert the symbols to replace with. For example:

Array(...,'и', 'з', 'З'),
Array(...,'i', 'z', 'z'),

I hope this will help you a little.

interkob@gmail.com

interkob

Avatar: interkob

2012-12-04 16:16

This forum converted my russian symbols to the code. You use regular russian symbols.

interkob@gmail.com

nonso

Avatar: nonso

2012-12-06 07:31

It is impossible. To start, I did this:
Array( 'д' ),
Array( 'd' ),
Displays a question mark. I do not know what to write instead of the soft sign in Russian. I would be very grateful for your help!

interkob

Avatar: interkob

2012-12-06 07:57

Open core/libraries/trash.php and in the very end of the page change the code shown below:

function change2Url$sContent ){
  return 
strtolowerchange2Latinstr_replace
    Array( 
' ''&raquo;''/''$''\'', '"', '~', '\\', '?', '#', '%', '+', '^', '*', '>', '<', '@', '|', '"', '%', ':', '&', ',', '=', '--', '--', '[', ']', '.' ),
    Array( '
-', '', '-', '-', '',   '',  '-', '-',  '-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '-',      '-', '-', '',  '-', '-', '-',  '-', '(', ')', ' ),
    
trim$sContent )
  ) ) );
// end function change2Url



with following:

function change2Url$sContent ){
  return 
strtolowerchange2Latinstr_replace
    Array( 
' ''&raquo;''/''$''\'', '"', '~', '\\', '?', '#', '%', '+', '^', '*', '>', '<', '@', '|', '"', '%', ':', '&', ',', '=', '--', '--', '[', ']', '.', '&#1072;', '&#1073;', '&#1074;', '&#1075;', '&#1076;', '&#1106;', '&#1077;', '&#1078;', '&#1079;', '&#1080;', '&#1112;', '&#1082;', '&#1083;', '&#1113;', '&#1084;', '&#1085;', '&#1114;', '&#1086;', '&#1087;', '&#1088;', '&#1089;', '&#1090;', '&#1115;', '&#1091;', '&#1092;', '&#1093;', '&#1094;', '&#1095;', '&#1119;','&#1096;', '&#1040;', '&#1041;', '&#1042;', '&#1043;', '&#1044;', '&#1026;', '&#1045;', '&#1046;', '&#1047;', '&#1048;', '&#1032;', '&#1050;', '&#1051;', '&#1033;', '&#1052;', '&#1053;', '&#1034;', '&#1054;', '&#1055;', '&#1056;', '&#1057;', '&#1058;', '&#1035;', '&#1059;', '&#1060;', '&#1061;', '&#1062;', '&#1063;', '&#1039;', '&#1064;' ),
    
Array( '-''''-''-''',   '',  '-''-',  '-''-''-''-''-''-''-''-''-''-''-',      '-''-''',  '-''-''-',  '-''('')''''a''b''v''g''d''d''e''z''z''i''j''k''l''lj''m''n''nj''o','p''r''s''t''c''u''f''h''c''c''dz''s''A''B''B''G''D''D''E''Z''Z','I','J''K''L''LJ''M''N''NJ''O''P''R''S''T''C''U''F''H''C''C''DZ''S' ),
    
trim$sContent )
  ) ) );
// end function change2Url



I'm not sure if this is russian alphabet, but it looks very similar.

Let me know about the results. And please upgrade my array with full russian ABC and post it here for me.

interkob

Avatar: interkob

2012-12-06 08:02

This forum doesn't support russian symbols. Please visit the link below:

http://qcskins.eu/replace-with-this.html

nonso

Avatar: nonso

2012-12-14 18:18

Thank you! Some letters have replaced! But wrong. I'll try to do something. Strange! I checked - the letters match.
Thank you for helping me!

nonso

Avatar: nonso

2012-12-14 18:23

A Russian alphabet

http://egold-money.info/egold_translit.html
http://yapro.ru/web-master/xhtml/html-kodi-bukv-i-specialinih-simvolov.html

interkob

Avatar: interkob

2012-12-14 20:49

Should work. It works for me. Maybe you have more changes done before on your script, that may cause this problem...

Tata55

Avatar: Tata55

2014-04-28 17:25

I have a problem with exported files (CSV). Which encoding shall be used when opening exported files in excel and wich shall be used when saving them for import into the QC?

Tata

Back to top
about us | contact