mirror of
https://github.com/openharmony/js_api_module.git
synced 2026-07-19 10:16:08 -04:00
!124 Solve that Textdecode class cannot decode GBK, GB8030 and GB2312
Merge pull request !124 from 小马奔腾/master
This commit is contained in:
@@ -78,6 +78,7 @@ ohos_shared_library("util") {
|
||||
"//foundation/arkui/napi",
|
||||
"//foundation/arkui/napi/native_engine",
|
||||
"//third_party/icu/icu4c/source/common",
|
||||
"//third_party/icu/icu4c/source",
|
||||
"//third_party/node/src",
|
||||
"//foundation/arkui/napi/interfaces/kits",
|
||||
"//base/compileruntime/js_util_module/util",
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "ohos/init_data.h"
|
||||
#include "securec.h"
|
||||
#include "unicode/unistr.h"
|
||||
#include "utils/log.h"
|
||||
@@ -41,6 +42,7 @@ namespace OHOS::Util {
|
||||
}
|
||||
}
|
||||
label_ = i32Flag;
|
||||
SetHwIcuDirectory();
|
||||
bool fatal =
|
||||
(i32Flag & static_cast<uint32_t>(ConverterFlags::FATAL_FLG)) ==
|
||||
static_cast<uint32_t>(ConverterFlags::FATAL_FLG);
|
||||
|
||||
Reference in New Issue
Block a user