|
|
|
@ -141,7 +141,7 @@ class FeiePrintService implements FeiePrintServiceInterface |
|
|
|
$m = $m+$j; |
|
|
|
$tail = $new; |
|
|
|
// $lenght = iconv("UTF-8", "GBK//IGNORE", $new);
|
|
|
|
$k = $A - mb_strlen($new); |
|
|
|
$k = $A - mb_strlen($new,'utf-8'); |
|
|
|
for($q=0;$q<$k;$q++){ |
|
|
|
$kw3 .= ' '; |
|
|
|
} |
|
|
|
@ -166,7 +166,7 @@ class FeiePrintService implements FeiePrintServiceInterface |
|
|
|
foreach ($result as $key=>$value) { |
|
|
|
if($key < 1){ |
|
|
|
// $v_lenght = iconv("UTF-8", "GBK//IGNORE", $value);
|
|
|
|
$v_lenght = mb_strlen($value); |
|
|
|
$v_lenght = mb_strlen($value,'utf-8'); |
|
|
|
if($v_lenght == 13) $value = $value." "; |
|
|
|
$head .= $value.' '.$price.' '.$num.' '.$prices; |
|
|
|
}else{ |
|
|
|
@ -213,7 +213,7 @@ class FeiePrintService implements FeiePrintServiceInterface |
|
|
|
$str = $user_name . $total; |
|
|
|
$kw5 = ''; |
|
|
|
// $lenght = iconv("UTF-8", "GBK//IGNORE", $str);
|
|
|
|
$total_len = 32 - mb_strlen($str); |
|
|
|
$total_len = 32 - mb_strlen($str,'utf-8'); |
|
|
|
for ($q = 0; $q < $total_len; $q++) { |
|
|
|
$kw5 .= ' '; |
|
|
|
} |
|
|
|
|