use UTF8 JSON encoding and decoding universally
fixed: Import/Export of packages with international text is broken
This commit is contained in:
parent
35bfeac0ef
commit
9ed284beec
16 changed files with 42 additions and 40 deletions
|
|
@ -18,7 +18,7 @@ use strict;
|
|||
use base 'WebGUI::Asset::Wobject';
|
||||
use Tie::IxHash;
|
||||
use WebGUI::HTMLForm;
|
||||
use JSON qw/ to_json /;
|
||||
use JSON qw/ encode_json /;
|
||||
use Digest::MD5;
|
||||
use WebGUI::Workflow::Instance;
|
||||
use WebGUI::Cache;
|
||||
|
|
@ -952,7 +952,7 @@ sub getBadgeSelector {
|
|||
};
|
||||
}
|
||||
$js = '<script type="text/javascript">
|
||||
var badges = '.to_json(\%badgeJS).';
|
||||
var badges = '.encode_json(\%badgeJS).';
|
||||
</script>';
|
||||
%options = (%options,%{$badges});
|
||||
$output .= WebGUI::Form::selectBox($self->session,{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue