@@ 103-118 (lines=16) @@ | ||
100 | $siteurl_en = urlencode(mb_convert_encoding($siteurl, 'UTF-8', _CHARSET)); |
|
101 | $sitetitle_en = urlencode(mb_convert_encoding($sitetitle, 'UTF-8', _CHARSET)); |
|
102 | ||
103 | function bookmark_convert_encoding($str, $to = 'SJIS', $from = _CHARSET) |
|
104 | { |
|
105 | if (function_exists('mb_convert_encoding')) { |
|
106 | if (is_array($str)) { |
|
107 | foreach ($str as $key=>$val) { |
|
108 | $str[$key] = bookmark_convert_encoding($val, $to, $from); |
|
109 | } |
|
110 | ||
111 | return $str; |
|
112 | } else { |
|
113 | return mb_convert_encoding($str, $to, $from); |
|
114 | } |
|
115 | } else { |
|
116 | return $str; |
|
117 | } |
|
118 | } |
|
119 | ||
120 | function bookmark_qrcode_encoding($data= '') |
|
121 | { |
@@ 100-115 (lines=16) @@ | ||
97 | ||
98 | $myts =& MyTextSanitizer::getInstance(); |
|
99 | ||
100 | function mylinks_qrcode_convert_encoding($str, $to = 'SJIS', $from = _CHARSET) |
|
101 | { |
|
102 | if (function_exists('mb_convert_encoding')) { |
|
103 | if (is_array($str)) { |
|
104 | foreach ($str as $key=>$val) { |
|
105 | $str[$key] = mylinks_qrcode_convert_encoding($val, $to, $from); |
|
106 | } |
|
107 | ||
108 | return $str; |
|
109 | } else { |
|
110 | return mb_convert_encoding($str, $to, $from); |
|
111 | } |
|
112 | } else { |
|
113 | return $str; |
|
114 | } |
|
115 | } |
|
116 | ||
117 | function mylinks_qrcode_encoding($data= '') |
|
118 | { |