JSON/PP/pp.pm line 468

Moderator: crythias

Locked
lpilkington
Znuny newbie
Posts: 1
Joined: 12 Aug 2013, 15:13
Znuny Version: 3.2.9
Real Name: Lee Pilkington
Company: MSX International

JSON/PP/pp.pm line 468

Post by lpilkington »

Dear all,
When switching language, or replying to a ticket after switching language for a user I get the following error.
Is anyone able to help or point me in the right direction.

Many thanks in advance for any guidance, it will be very much appreciated.
Regards
Lee

Server error!

The server encountered an internal error and was unable to complete your request.

Error message:
Malformed UTF-8 character (fatal) at /opt/otrs/Kernel/cpan-lib/JSON/PP.pm line 468. ,

If you think this is a server error, please contact the webmaster.

Error 500

tick-it.msxi-euro.com
Mon Aug 12 14:11:13 2013
Apache/2.2.10 (Linux/SUSE)
ndhvu275
Znuny advanced
Posts: 139
Joined: 06 Nov 2012, 09:02
Znuny Version: 3.x, 4.x and 5.x
Real Name: Vu Nguyen
Company: INFOdation
Location: Netherlands
Contact:

Re: JSON/PP/pp.pm line 468

Post by ndhvu275 »

Hi,

I'm facing this issue as well when searching customer in AgentTicketPhone screen, customer data is from external database MS SQL. Did you solve it? Please share to me some idea.
I'm using OTRS 3.3.x, the package JSON::XS is version 2.3
The error maybe JSON cannot understand some strange characters in customer data. I reproduced as below

Error AJAX when searching customer. Using Firebug
12-13-2013 10-11-44 AM.png
Httpd error log
12-13-2013 10-09-18 AM.png
Could you help me this error. Thanks

Vu Nguyen
You do not have the required permissions to view the files attached to this post.
OTRS 3.x, 4.x on CentOS/Windows
MySQL database
External customer backend with MySQL, MSSQL
Customization
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: JSON/PP/pp.pm line 468

Post by jojo »

ensure that your database is utf8
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
ndhvu275
Znuny advanced
Posts: 139
Joined: 06 Nov 2012, 09:02
Znuny Version: 3.x, 4.x and 5.x
Real Name: Vu Nguyen
Company: INFOdation
Location: Netherlands
Contact:

Re: JSON/PP/pp.pm line 468

Post by ndhvu275 »

jojo wrote:ensure that your database is utf8
What happen if my DB is not utf-8? Maybe I have to disable charset utf-8 in customer backend file in picture. That means it is acceptable for all kinds of charset in incoming data, is it correct?
12-13-2013 11-12-07 AM.png
Thanks

Vu Nguyen
You do not have the required permissions to view the files attached to this post.
OTRS 3.x, 4.x on CentOS/Windows
MySQL database
External customer backend with MySQL, MSSQL
Customization
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: JSON/PP/pp.pm line 468

Post by reneeb »

If the database is not utf-8, you have to declare what charset it uses!
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
ndhvu275
Znuny advanced
Posts: 139
Joined: 06 Nov 2012, 09:02
Znuny Version: 3.x, 4.x and 5.x
Real Name: Vu Nguyen
Company: INFOdation
Location: Netherlands
Contact:

Re: JSON/PP/pp.pm line 468

Post by ndhvu275 »

reneeb wrote:If the database is not utf-8, you have to declare what charset it uses!
Actually I cannot access to customer data. So I just disabled charset like above, my system is running OK with data is utf-8 and not utf-8. But it maybe impact to others I never know. I would like to ask "Is it acceptable for all kinds of charset in incoming data?"

Many thanks

Vu Nguyen
OTRS 3.x, 4.x on CentOS/Windows
MySQL database
External customer backend with MySQL, MSSQL
Customization
Locked