MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: imperio on 2013-08-23, 02:08:13

Title: File Manager win1251 (cp1251)
Post by: imperio on 2013-08-23, 02:08:13
Hello
How i can change the encoding in the file manager panel on win1251 (cp1251)

screenshot
(http://s017.radikal.ru/i410/1308/6f/db558da9038d.png)

my text on russian and I need encoding win1251 (cp1251)
Title: Re: File Manager win1251 (cp1251)
Post by: imperio on 2013-08-23, 11:46:36
Help me please
Title: Re: File Manager win1251 (cp1251)
Post by: MRatWork on 2013-08-23, 18:15:04
There are look like already set with '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />' (unicode)
Title: Re: File Manager win1251 (cp1251)
Post by: imperio on 2013-08-23, 18:33:26
where i ?an change the file manager on the encoding win-1251 ?
where are located files kloxo file manager ?
 i need encoding win-1251 because my files on russian language
Title: Re: File Manager win1251 (cp1251)
Post by: Spacedust on 2013-08-23, 19:12:37
I need UTF-8
Title: Re: File Manager win1251 (cp1251)
Post by: MRatWork on 2013-08-23, 19:25:29
For example this http://centos.alt.ru/ (http://centos.alt.ru/) using UTF-8 and I found display russian character. I found most code for display in Kloxo-MR panel already use UTF-8 also.

I am not sure, maybe 'textarea' (html code) not support UTF-8.
Title: Re: File Manager win1251 (cp1251)
Post by: MRatWork on 2013-08-23, 19:27:46
Read http://www.w3schools.com/tags/att_form_ ... harset.asp (http://www.w3schools.com/tags/att_form_accept_charset.asp), look like 'form' need  'accept-charset="ISO-8859-1"' for display 'ISO-8859-1' correctly.
Title: Re: File Manager win1251 (cp1251)
Post by: imperio on 2013-08-23, 19:54:03
MRatWork  where to add this encoding ?
(accept-charset="ISO-8859-1)

in my site files or configuration files panel
Title: Re: File Manager win1251 (cp1251)
Post by: Spacedust on 2013-08-23, 20:01:15
UTF-8 seems to work fine.
Title: Re: File Manager win1251 (cp1251)
Post by: imperio on 2013-08-23, 21:09:45
Spacedust, my site on windows-1251 charset
and russian text in not work in file manager panel

MRatWork where to add this encoding ?
(accept-charset="ISO-8859-1)
in my site files or configuration files panel

How can I change the encoding of win-1251 (or ISO-8859-1) for filemanager in panel config files ?
Title: Re: File Manager win1251 (cp1251)
Post by: MRatWork on 2013-08-23, 22:53:04
Quote from: "imperio"
Spacedust, my site on windows-1251 charset
and russian text in not work in file manager panel

MRatWork where to add this encoding ?
(accept-charset="ISO-8859-1)
in my site files or configuration files panel

How can I change the encoding of win-1251 (or ISO-8859-1) for filemanager in panel config files ?
It's hard to coding.

I try to make all '<form>' use 'accept-charset="utf-8"' and I hope all content of Kloxo-MR will accept unicode (also russian language too).
Title: Re: File Manager win1251 (cp1251)
Post by: MRatWork on 2013-08-23, 22:55:42
See '/usr/local/lxlabs/kloxo/httpdocs/htmllib/htmllib.php' to find out 'form'.
Title: Re: File Manager win1251 (cp1251)
Post by: imperio on 2013-08-24, 01:50:05
in this file I found two lines with <form>

Quote
print('<form>');
and
Quote
<td valign="middle" align="left" width=5>

        <form>

what can i do
Title: Re: File Manager win1251 (cp1251)
Post by: imperio on 2013-08-25, 01:48:18
MRatWork, Do you have a solution for my problem ? :(
How i can use file manager with russian text ? (windows-1251)
Title: Re: File Manager win1251 (cp1251)
Post by: MRatWork on 2013-08-25, 15:43:56
Too many code must change/add 'accept-charset'. WIll be release on next upload.
Title: Re: File Manager win1251 (cp1251)
Post by: imperio on 2013-08-25, 16:42:25
MRatWork, Thank you i will wait ;)
Title: Re: File Manager win1251 (cp1251)
Post by: imperio on 2013-08-25, 23:07:06
Mustafa when the date of the release with this feature ?

Will be choice of encoding in the filmanager  or is already built into the panel ?
Title: Re: File Manager win1251 (cp1251)
Post by: imperio on 2013-08-26, 17:07:49
Mustafa can you answer for my question please ?
when the date of the release with this feature ?
Title: Re: File Manager win1251 (cp1251)
Post by: MRatWork on 2013-08-26, 17:48:23
It's not so fast to update htmllib.php because big file with php code. Need more times until this optimizing code release in next update.
Title: Re: File Manager win1251 (cp1251)
Post by: imperio on 2013-08-26, 18:20:02
next update will be in december 2013 ?
Title: Re: File Manager win1251 (cp1251)
Post by: MRatWork on 2013-08-26, 19:06:19
Nope. December for 6.5.1 and next update for 6.5.0.f just this week.
Title: Re: File Manager win1251 (cp1251)
Post by: imperio on 2013-08-26, 19:19:05
Mustafa, thank you for your work
I hope this feature will be work fine with russian text in the filemanager
I like kloxo-mr and I want to use this panel on my server ;)
Title: Re: File Manager win1251 (cp1251)
Post by: imperio on 2013-08-28, 20:21:59
MRatWork I downloaded the latest update (20130827) but the function of encoding does not work with the Russian text
if I change the encoding to windows-1251 in the htmllib.php i see this
Code: [Select]
&#65533;&#65533in the utf-8 russian text does not work
you can download and test this file with russian text in your control panel filemanager
russian text file (http://yadi.sk/d/gAqryxqC8NczI)

Russian text in the panel works fine (messages, help desk, Comments form)
but in the textarea of filemanager russian test does not work

I dont know what to do  :(

in the cpanel I can choose the encoding when I edit a file
(http://s020.radikal.ru/i719/1308/bc/27c4d12983d7.png)
and
(http://s016.radikal.ru/i336/1308/80/2d82d4b3e684.png)

can you also make ?
Title: Re: File Manager win1251 (cp1251)
Post by: imperio on 2013-08-29, 13:57:18
Mustafa, thank you for trying to help
I will be use ISPmanager Control Panel

I'm disappointed that you were unable to make the function encodings :(
I will not work with kloxo-mr in the ftp mode, i would like to use kloxo-mr with filemanager
Title: Re: File Manager win1251 (cp1251)
Post by: MRatWork on 2013-08-29, 17:49:18
For latest upload, more easy to change 'accept-charset'. Just open htmllib.php and then change all 'utf-8' to other.
Title: Re: File Manager win1251 (cp1251)
Post by: imperio on 2013-08-29, 17:56:09
Quote from: "MRatWork"
open htmllib.php and then change all 'utf-8' to other.

I change all 'utf-8' at windows-1251
but i see this simbols
Code: [Select]
&#65533;&#65533
do you test my file in your filemanager ?
Title: Re: File Manager win1251 (cp1251)
Post by: MRatWork on 2013-08-29, 18:03:49
The code of '&#65533;&#65533' is html term. Effect only if using browser-based editor like fckeditor.
Title: Re: File Manager win1251 (cp1251)
Post by: MRatWork on 2013-08-29, 18:17:33
Enter:

Code: [Select]
??????????? ?? ???????????

??? ???????? ????? ???????????? ????????? ?????????? yandex ????? (????? ???????? 410011574789860) ?? ???????? ??????? ???? ????? webmoney R258683902589

????? ? ???????????? ? ??????? ????? ??????????? ??? ???? ??????????? ?? ???????? ??????????? CentALT.

??????? ???????.
is work for fckeditor but enter:
Code: [Select]
&#65533;&#65533is NOT work.
Title: Re: File Manager win1251 (cp1251)
Post by: imperio on 2013-08-29, 20:04:49
If I load the finished file in the filemanager and save in editor i see
&#65533;&#65533

Mustafa try to download a russian file and edit with the save in the editor (charset  windows-1251 htmllib.php)
 you can see this &#65533;&#65533
Title: Re: File Manager win1251 (cp1251)
Post by: MRatWork on 2013-08-29, 20:42:03
Still using utf-8, try copy source of http://centos.alt.ru/ (http://centos.alt.ru/) and then save. It's work.