Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

UnixAgent-2.8.0-MAC is not compatible with Chinese

I have got a problem on deploying Unix Agent 2.8.0 (Mac Version): After ocs client encoded content from Inventory, Chinese strings like software names became garbled.

I have tried to alter the code and tested on my mac, and find the cause issue below:

FILE: UnixAgent/lib/Ocsinventory/Agent/Common.pm

In line: 1052

my $clean_content = encode('UTF-8', $content, Encode::FB_DEFAULT | Encode::LEAVE_SRC | Encode::FB_XMLCREF);

Chinese software name stings in "$clean_content" turned to be unnormal as UTF-8, but they are really good in "$content".

Thease are the alteration of code I have made, they are doing well so far:

1. FILE: UnixAgent/lib/Ocsinventory/Agent/XML/Inventory.pm

In line: 116    

#return $clean_content;

return $content;

Would you please rebuild an "OCS Inventory Pkg Setup.pkg" for us to make Chinese compatible?

Sincerely 

Thanks

in OCS Inventory NG agent for MacOS X by (120 points)

Please log in or register to answer this question.

 
Powered by Question2Answer
...