VasiaB / bugzilla-cn

Automatically exported from code.google.com/p/bugzilla-cn
0 stars 0 forks source link

Unknown encoding 'UTF-16LE' at C:/Perl/site/lib/Template/Provider.pm line 1050 #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. copy cn folder to Bugzilla/template/
2. perl checksetup.pl

What is the expected output? What do you see instead?
It should not have the error. But I got the unknown encoding UTF-16LE 
error.

What version of the product are you using? On what operating system?
Windows 2003 Server (English)
Perl 5.8.8

Please provide any additional information below.
C:\bugzilla3>perl checksetup.pl
* This is Bugzilla 3.1.2+ on perl 5.8.8 <--I try the 3.1.2 version have 
the same error
* Running on Win2003 Build 3790 (Service Pack 2)

Checking perl modules...
Checking for                 CGI (v2.93)   ok: found v3.29
Checking for            TimeDate (v2.21)   ok: found v2.22
Checking for           PathTools (v0.84)   ok: found v3.25
Checking for                 DBI (v1.41)   ok: found v1.57
Checking for    Template-Toolkit (v2.12)   ok: found v2.15
Checking for          Email-Send (v2.16)   ok: found v2.185
Checking for Email-MIME-Modifier (any)     ok: found v1.442

Checking available perl DBD modules...
Checking for              DBD-Pg (v1.45)    not found
Checking for           DBD-mysql (v2.9003) ok: found v3.0002

The following Perl modules are optional:
Checking for                  GD (v1.20)   ok: found v2.16
Checking for               Chart (v1.0)    ok: found v2.3
Checking for         Template-GD (any)     ok: found v1.56
Checking for          GDTextUtil (any)     ok: found v0.86
Checking for             GDGraph (any)     ok: found v1.43
Checking for            XML-Twig (any)     ok: found v3.26
Checking for          MIME-tools (v5.406)  ok: found v5.417
Checking for         libwww-perl (any)     ok: found v2.036
Checking for         PatchReader (v0.9.4)  ok: found v0.9.5
Checking for          PerlMagick (any)     ok: found v6.3.5
Checking for           perl-ldap (any)     ok: found v0.34
Checking for          RadiusPerl (any)     ok: found v0.13
Checking for           SOAP-Lite (any)     ok: found v0.55
Checking for         HTML-Parser (v3.40)   ok: found v3.56
Checking for       HTML-Scrubber (any)     ok: found v0.08
Checking for Email-MIME-Attachment-Stripper (any)     ok: found v1.3
Checking for         Email-Reply (any)     ok: found v1.202
Checking for            mod_perl (v1.999022) ok: found v2.000003
Checking for                 CGI (v3.11)   ok: found v3.29
Checking for          Apache-DBI (v0.96)   ok: found v1.06
Reading ./localconfig...
Checking for           DBD-mysql (v2.9003) ok: found v3.0002
Checking for           MySQL (v4.1.2)  ok: found v4.1.22-community-nt

Removing existing compiled templates ...
Precompiling templates...
Unknown encoding 'UTF-16LE' at C:/Perl/site/lib/Template/Provider.pm line 
1050

Original issue reported on code.google.com by pip.c...@gmail.com on 3 Nov 2007 at 2:48

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Bugzilla has suffered an internal error. Please save this page and send it to 
test@xxx.com with details of what you were doing at the time this message 
appeared. 

URL: http://127.0.0.1:8011/bugzilla3/editusers.cgi?
action=list&matchvalue=login_name&matchtype=substr&matchstr=&groupid=7

Unknown encoding 'UTF-16LE' at C:/Perl/site/lib/Template/Provider.pm line 1052  

when I try to edit the user's name the error shows above

Original comment by pip.c...@gmail.com on 5 Nov 2007 at 11:38

GoogleCodeExporter commented 8 years ago
我这边的Bugzilla工作在Windows 2003 
Server中文版上,除了Template-Toolkit的版本是2.19
外,其它软件环境大致与你的相同。你可以考虑将Template-Toolk
it升级到2.19试试看。
我这边运行checksetup.pl报出以下错误:
Precompiling templates...
utf8 "\xC1" does not map to Unicode at C:/Perl/lib/Encode.pm line 166.
但这并没有影响Bugzilla全部功能的使用,目前正在找更好的解
决数据库输出乱码的方法。
从我这边使用了一个多月的情况来看,除了图表中汉字乱码��
�不能发中文邮件和csv格式文件为
UTF-8而导致excel打开乱码(UE打开正常)外,暂未发现其它问题。

Original comment by jiangyan...@gmail.com on 6 Nov 2007 at 6:58

GoogleCodeExporter commented 8 years ago
我用Debian/Etch,bugzilla-3.1.2,也碰到"utf8 "\xC1" does not map to 
Unicode at
/usr/lib/perl/5.8/Encode.pm line 166, <FH> chunk 
1."的问题,bugzilla就不能用了,有办
法解决吗?谢了
checksetup.pl输出如下:
* This is Bugzilla 3.1.2 on perl 5.8.8
* Running on Linux 2.6.18-5-486 #1 Fri Jun 1 00:07:22 UTC 2007

Checking perl modules...
Checking for                 CGI (v2.93)   ok: found v3.15 
Checking for            TimeDate (v2.21)   ok: found v2.22 
Checking for           PathTools (v0.84)   ok: found v3.12 
Checking for                 DBI (v1.41)   ok: found v1.53 
Checking for    Template-Toolkit (v2.12)   ok: found v2.14 
Checking for          Email-Send (v2.00)   ok: found v2.181 
Checking for Email-MIME-Modifier (any)     ok: found v1.440 

Checking available perl DBD modules...
Checking for              DBD-Pg (v1.45)    not found 
Checking for           DBD-mysql (v2.9003) ok: found v3.0008 

The following Perl modules are optional:
Checking for                  GD (v1.20)   ok: found v2.34 
Checking for               Chart (v1.0)    ok: found v2.4.1 
Checking for         Template-GD (any)     ok: found v1.56 
Checking for          GDTextUtil (any)     ok: found v0.86 
Checking for             GDGraph (any)     ok: found v1.4308 
Checking for            XML-Twig (any)     ok: found v3.26 
Checking for          MIME-tools (v5.406)  ok: found v5.420 
Checking for         libwww-perl (any)     ok: found v2.033 
Checking for         PatchReader (v0.9.4)  ok: found v0.9.5 
Checking for          PerlMagick (any)     ok: found v6.2.4 
Checking for           perl-ldap (any)     ok: found v0.33 
Checking for          RadiusPerl (any)     ok: found v0.12 
Checking for           SOAP-Lite (any)     ok: found v0.69 
Checking for         HTML-Parser (v3.40)   ok: found v3.55 
Checking for       HTML-Scrubber (any)     ok: found v0.08 
Checking for Email-MIME-Attachment-Stripper (any)     ok: found v1.313 
Checking for         Email-Reply (any)      not found 
Checking for            mod_perl (v1.999022) ok: found v2.000002 
Checking for                 CGI (v3.11)   ok: found v3.15 
Checking for          Apache-DBI (v0.96)   ok: found v1.04 

* NOTE: You must run any commands listed below as root.

**********************************************************************
* OPTIONAL MODULES                                                   *
**********************************************************************
* Certain Perl modules are not required by Bugzilla, but by          *
* installing the latest version you gain access to additional        *
* features.                                                          *
*                                                                    *
* The optional modules you do not have installed are listed below,   *
* with the name of the feature they enable. If you want to install   *
* one of these modules, just run the appropriate command in the      *
* "COMMANDS TO INSTALL" section.                                     *
**********************************************************************

***********************************************************************
* MODULE NAME * ENABLES FEATURE(S)                                    *
***********************************************************************
* Email-Reply * Inbound Email                                         *
***********************************************************************
COMMANDS TO INSTALL:

    Email-Reply: /usr/bin/perl -MCPAN -e 'install Email::Reply'
Reading ./localconfig...

OPTIONAL NOTE: If you want to be able to use the 'difference between two
patches' feature of Bugzilla (which requires the PatchReader Perl module
as well), you should install patchutils from:

    http://cyberelk.net/tim/patchutils/

Checking for           DBD-mysql (v2.9003) ok: found v3.0008 
Checking for           MySQL (v4.1.2)  ok: found v5.0.32-Debian_7etch1-log

Removing existing compiled templates ...
Precompiling templates...

Original comment by lib...@gmail.com on 30 Nov 2007 at 5:50

GoogleCodeExporter commented 8 years ago
"utf8 "\xC1" does not map to Unicode at /usr/lib/perl/5.8/Encode.pm line 
166的问题确
实存在,现在还没有找到这个字符到底在哪。不过这并不影��
�使用,目前正在汉化剩余未汉化部分。

Original comment by jiangyan...@gmail.com on 30 Nov 2007 at 5:59

GoogleCodeExporter commented 8 years ago
是可以正常访问了,需手动把bugzilla目录的权限修改一下,多
谢
不过,页面上还是英文,在哪里修改默认语言啊(不好意思��
�找了半天只找到"Language used in
Email)

Original comment by lib...@gmail.com on 30 Nov 2007 at 1:02

GoogleCodeExporter commented 8 years ago
3.2 默认的语言是根据你的浏览器接受的语言来决定的。
你可以把浏览器接受的语言优先级改改。
IE的改法如下:“工具”-“Internet 选项”-“常规”-“语言”
添加 En-us 的语言项,并把它上移到顶。

Original comment by jiangyan...@gmail.com on 4 Dec 2007 at 1:41

GoogleCodeExporter commented 8 years ago
请问liboat,你是如何修改的?我也遇到了和你同样的问题,ut
f8 "\xC1" does not map to Unicode 
at /usr/lib/perl/5.8/Encode.pm line 
166,但是权限不知道怎么修改,请指点一二。谢谢

Original comment by free.bir...@gmail.com on 18 Jun 2008 at 12:53