US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > ISPmanager > Troubleshooting


Reply
 
Thread Tools
Old 05-05-2009, 07:46 PM   #1
Junior Member
 
Join Date: May 2009
Posts: 2
shawnsorrell is on a distinguished road
Default 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.
shawnsorrell is offline   Reply With Quote
Old 05-06-2009, 07:51 PM   #2
ISPsystem team
 
slava's Avatar
 
Join Date: May 2008
Location: ISPsystem
Posts: 588
slava is on a distinguished road
Default

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
slava is offline   Reply With Quote
Old 05-07-2009, 12:15 AM   #3
Junior Member
 
Join Date: May 2009
Posts: 2
shawnsorrell is on a distinguished road
Default

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.
shawnsorrell is offline   Reply With Quote
Old 12-21-2010, 10:21 AM   #4
Senior Member
 
Join Date: Nov 2009
Location: Germany
Posts: 117
sascha is on a distinguished road
Send a message via MSN to sascha
Default

Quote:
Originally Posted by slava View Post
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
sascha is offline   Reply With Quote
Old 12-22-2010, 02:35 AM   #5
ISPsystem team
 
Join Date: Jan 2009
Posts: 111
GakcaT is on a distinguished road
Default

We'll check it out.
GakcaT is offline   Reply With Quote
Old 12-22-2010, 03:58 AM   #6
ISPsystem team
 
Join Date: Jan 2009
Posts: 111
GakcaT is on a distinguished road
Default

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).
GakcaT is offline   Reply With Quote
Old 12-22-2010, 11:16 AM   #7
Senior Member
 
Join Date: Nov 2009
Location: Germany
Posts: 117
sascha is on a distinguished road
Send a message via MSN to sascha
Default

Quote:
Originally Posted by GakcaT View Post
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
sascha is offline   Reply With Quote
Old 12-23-2010, 08:28 AM   #8
ISPsystem team
 
Join Date: Jan 2009
Posts: 111
GakcaT is on a distinguished road
Default

Could you run the command before ISPmanager installation and provide the result:
Code:
iconv -l |cut -d" " -f1|sed "s|//||g" > /tmp/filemgr.enc
GakcaT is offline   Reply With Quote
Old 02-11-2011, 09:03 PM   #9
Senior Member
 
Join Date: Nov 2009
Location: Germany
Posts: 117
sascha is on a distinguished road
Send a message via MSN to sascha
Default

now, i´ve test with debian 6.0, the same probleme
see results from your command attachet file
Attached Files
File Type: txt filemgr.txt (11.9 KB, 5 views)
sascha is offline   Reply With Quote
Old 02-14-2011, 04:32 AM   #10
ISPsystem team
 
Join Date: Jan 2009
Posts: 111
GakcaT is on a distinguished road
Default

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?
GakcaT is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:11 PM.