ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   Troubleshooting (http://forum.ispsystem.com//forumdisplay.php?f=11)
-   -   ISPmanager and Charecter encodeing (http://forum.ispsystem.com//showthread.php?t=560)

shawnsorrell 05-05-2009 07:46 PM

ISPmanager and Charecter encodeing
 
While working with the File Manager in ISPmanager I ran across an error when I went to edit a file.
Error: Unsupported encoding

The default coding was ANSI_X3.110 which gives a blank text field (at least for html files). CAUTION... do not hit the OK button, it'll wipe out the file.

You can use the drop down to select a different character set and the ISO flavors seem to work fine. On further exploration of the interface I noticed that the Domains > WWWdomains > WWW Parameters allows you to enter a Coding (character set) as the default for the domain. Which charecter set would be best to use for this (English/American site)? Will this affect the File Manager default? If not is there a place that this can be set. Checking the online documentation gives no real guidelines for this.

slava 05-06-2009 07:51 PM

Please check file with encoding sets - /usr/local/ispmgr/etc/filemgr.enc

If file does not exist - you need create file by command

Code:

iconv -l |cut -d" " -f1|sed "s|//||g" > /usr/local/ispmgr/etc/filemgr.enc
It must create file with encodes supported by you operation system like this

Code:

# cat /usr/local/ispmgr/etc/filemgr.enc
ANSI_X3.4-1968
UTF-8
ISO-10646-UCS-2
UCS-2BE
UCS-2LE
ISO-10646-UCS-4
UCS-4BE
UCS-4LE
UTF-16
UTF-16BE
UTF-16LE
UTF-32
UTF-32BE
UTF-32LE
UNICODE-1-1-UTF-7
UCS-2-INTERNAL
UCS-2-SWAPPED
UCS-4-INTERNAL
UCS-4-SWAPPED
C99
JAVA
CP819
ISO-8859-2
ISO-8859-3
ISO-8859-4
CYRILLIC
ARABIC
ECMA-118
HEBREW
ISO-8859-9
ISO-8859-10
ISO-8859-11
ISO-8859-13
ISO-8859-14
ISO-8859-15
ISO-8859-16
KOI8-R
KOI8-U
KOI8-RU
CP1250
CP1251
CP1252
CP1253
CP1254
CP1255
CP1256
CP1257
CP1258
850
862
866
MAC
MACCENTRALEUROPE
MACICELAND
MACCROATIAN
MACROMANIA
MACCYRILLIC
MACUKRAINE
MACGREEK
MACTURKISH
MACHEBREW
MACARABIC
MACTHAI
HP-ROMAN8
NEXTSTEP
ARMSCII-8
GEORGIAN-ACADEMY
GEORGIAN-PS
KOI8-T
CP154
MULELAO-1
CP1133
ISO-IR-166
CP874
VISCII
TCVN
ISO-IR-14
JISX0201-1976
ISO-IR-87
ISO-IR-159
CN
CHINESE
CN-GB-ISOIR165
EUC-JP
MS_KANJI
CP932
ISO-2022-JP
ISO-2022-JP-1
ISO-2022-JP-2
CN-GB
GBK
CP936
GB18030
ISO-2022-CN
ISO-2022-CN-EXT
HZ
EUC-TW
BIG-5
CP950
BIG5-HKSCS:1999
BIG5-HKSCS:2001
BIG5-HKSCS
EUC-KR
CP949
CP1361
ISO-2022-KR
CP856
CP922
CP943
CP1046
CP1124
CP1129
CP1161
CP1162
CP1163
DEC-KANJI
DEC-HANYU
437
CP737
CP775
852
CP853
855
857
CP858
860
861
863
CP864
865
869
CP1125
EUC-JISX0213
SHIFT_JISX0213
ISO-2022-JP-3
BIG5-2003
ISO-IR-230
ATARI
RISCOS-LATIN1


shawnsorrell 05-07-2009 12:15 AM

Thanks! I am still a bit concerned that if the correct encodeing is not selected that the text field is blank. If the OK button is hit then the file is wiped clean. I am afraid that clients might make this mistake on files.

sascha 12-21-2010 10:21 AM

Quote:

Originally Posted by slava (Post 2461)
Please check file with encoding sets - /usr/local/ispmgr/etc/filemgr.enc

If file does not exist - you need create file by command

Code:

iconv -l |cut -d" " -f1|sed "s|//||g" > /usr/local/ispmgr/etc/filemgr.enc
It must create file with encodes supported by you operation system like this

Code:

# cat /usr/local/ispmgr/etc/filemgr.enc

RISCOS-LATIN1


hi,

still on every new debian installation, i must use this bugfix manually

GakcaT 12-22-2010 02:35 AM

We'll check it out.

GakcaT 12-22-2010 03:58 AM

I've just cheked it. filemgr.enc is created automatically in the script: /usr/local/ispmgr/sbin/ISPmanager-install.sh. Perhaps, the problem is in your method of installation. There are to ways to install ISPmanager. The first one is to download and run install.sh (the best way). The second one is to download install.tgz and run /usr/local/ispmgr/sbin/ispinstall (In this case the problem can appear).

sascha 12-22-2010 11:16 AM

Quote:

Originally Posted by GakcaT (Post 4930)
I've just cheked it. filemgr.enc is created automatically in the script: /usr/local/ispmgr/sbin/ISPmanager-install.sh. Perhaps, the problem is in your method of installation. There are to ways to install ISPmanager. The first one is to download and run install.sh (the best way). The second one is to download install.tgz and run /usr/local/ispmgr/sbin/ispinstall (In this case the problem can appear).

i use the first method "download and run install.sh" to install debian i use,
the debian-506-i386-netinst.iso without any additional packets, then "aptitude install ssh" and install ispmgr over ssh. now i logon to ispmgr go to file-manager open a file and become the "cannot encode file" error

GakcaT 12-23-2010 08:28 AM

Could you run the command before ISPmanager installation and provide the result:
Code:

iconv -l |cut -d" " -f1|sed "s|//||g" > /tmp/filemgr.enc

sascha 02-11-2011 09:03 PM

1 Attachment(s)
now, i´ve test with debian 6.0, the same probleme
see results from your command attachet file

GakcaT 02-14-2011 04:32 AM

Quote:

Originally Posted by sascha
i´ve test with debian 6.0, the same probleme

Could you write a request to our support team and provide access to the server?


All times are GMT +2. The time now is 01:03 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.