/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkts/ |
H A D | js-apis-stream.md | 68 | encoding | string | 否 | 字符编码类型。默认值是'utf8',当前版本支持'utf8'、'gb18030'、'gbk'以及'gb2312'。| 103 writableStream.write('test', 'utf8'); 121 | encoding | string | 否 | 字符编码类型。默认值是'utf8',当前版本支持'utf8'、'gb18030'、'gbk'以及'gb2312'。| 158 writableStream.write('test', 'utf8'); 178 | encoding | string | 否 | 设置默认字符编码。默认值是'utf8',当前版本支持'utf8'、'gb18030'、'gbk'以及'gb2312'。| 731 | encoding | string | 否 | 需要设置的字符编码。默认值是'utf8',当前版本支持'utf8'、'gb18030'、'gbk'以及'gb2312'。 | 1011 readable.setEncoding('utf8'); 1117 | encoding | string | 否 | 数据的编码格式。默认值是'utf8',当前版本支持'utf8'、'gb18030'、'gbk'以及'gb2312'。| 1203 | encoding | string | 否 | 字符编码类型。默认值是'utf8',当前版本支持'utf8'、'gb18030'、'gbk'以及'gb2312'。| 1260 | encoding | string | 否 | 字符编码类型。默认值是'utf8',当前版本支持'utf8'、'gb18030'、'gbk'以及'gb2312'。| [all …]
|
H A D | js-apis-buffer.md | 28 | 'utf8' | 表示utf8格式。 | 29 | 'utf-8' | 表示utf8格式。 | 55 | encoding | [BufferEncoding](#bufferencoding) | 否 | 编码格式(当`fill`为string时,才有意义)。 默认值: 'utf8'。 | 176 | encoding | [BufferEncoding](#bufferencoding) | 否 | 编码格式。 默认值: 'utf8'。 | 457 let buf = buffer.from(new String('this is a test'), 'utf8', 14); 475 | encoding | [BufferEncoding](#bufferencoding) | 否 | 编码格式。 默认值: 'utf8'。 | 912 | encoding | [BufferEncoding](#bufferencoding) | 否 | 字符编码格式。 默认值: 'utf8'。 | 956 | encoding | [BufferEncoding](#bufferencoding) | 否 | 字符编码格式。 默认值: 'utf8'。 | 1036 | encoding | [BufferEncoding](#bufferencoding) | 否 | 字符编码格式。 默认值: 'utf8'。 | 2279 | encoding | string | 否 | 字符编码格式。 默认值: 'utf8'。 | [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkts/ |
H A D | js-apis-stream.md | 103 writableStream.write('test', 'utf8'); 164 writableStream.write('test', 'utf8'); 283 writableStream.write('data1', 'utf8'); 284 writableStream.write('data2', 'utf8'); 473 writableStream.write('data', 'utf8'); 520 writableStream.write('data1', 'utf8'); 521 writableStream.write('data2', 'utf8'); 1017 readable.setEncoding('utf8'); 1474 duplexStream.write('data', 'utf8'); 1525 duplexStream.write('data1', 'utf8'); [all …]
|
H A D | js-apis-buffer.md | 28 | 'utf8' | UTF-8 format.| 55 …ng) | No| Encoding format (valid only when **fill** is a string). The default value is **'utf8'**.| 176 …erEncoding](#bufferencoding) | No| Encoding format of the string. The default value is **'utf8'**.| 458 let buf = buffer.from(new String('this is a test'), 'utf8', 14); 476 …erEncoding](#bufferencoding) | No| Encoding format of the string. The default value is **'utf8'**.| 869 …g) | No| Encoding format (valid only when **value** is a string). The default value is **'utf8'**.| 913 …g) | No| Encoding format (valid only when **value** is a string). The default value is **'utf8'**.| 957 …g) | No| Encoding format (valid only when **value** is a string). The default value is **'utf8'**.| 1037 …g) | No| Encoding format (valid only when **value** is a string). The default value is **'utf8'**.| 2280 …ng | No| Encoding format (valid only when **value** is a string). The default value is **'utf8'**.| [all …]
|
/ohos5.0/commonlibrary/c_utils/base/test/fuzztest/parcel_fuzzer/ |
H A D | parcel_fuzzer.cpp | 240 string utf8 = dataProvider->ConsumeRandomLengthString(MAX_STRING_LENGTH); in __anon90ce765f0902() local 241 u16string utf16 = Str8ToStr16(utf8); in __anon90ce765f0902() 247 string utf8 = dataProvider->ConsumeRandomLengthString(MAX_STRING_LENGTH); in __anon90ce765f0a02() local 248 u16string utf16 = Str8ToStr16(utf8); in __anon90ce765f0a02() 255 string utf8 = dataProvider->ConsumeRandomLengthString(MAX_STRING_LENGTH); in __anon90ce765f0b02() local 256 char* value = utf8.data(); in __anon90ce765f0b02() 257 parcel.WriteString8WithLength(value, utf8.length()); in __anon90ce765f0b02()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/utils/ |
H A D | utf.cpp | 151 size_t EncodeUTF8(uint32_t codePoint, uint8_t* utf8, size_t len, size_t index) in EncodeUTF8() argument 159 utf8[index + j] = cont; in EncodeUTF8() 162 utf8[index] = codePoint | FIRST_BYTE_MARK[size]; in EncodeUTF8()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/text/renderservice/ |
H A D | main.cpp | 87 const std::string utf8 = "hello world!\n"; in DoDraw() local 89 const std::u16string u16Text = TextToUtf16(utf8); in DoDraw()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/request/uri/ |
H A D | percent_encoding.rs | 233 while let Some(utf8) = origin.next_u8() { in parse_fragment() 234 self.normalized.percent_encoding_push(utf8, FRAGMENT); in parse_fragment()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/include/ |
H A D | file_path.h | 49 static FilePath FromUTF8Unsafe(const std::string &utf8);
|
/ohos5.0/docs/zh-cn/application-dev/napi/ |
H A D | use-napi-about-string.md | 22 | napi_get_value_string_utf8 | 需要将ArkTS的字符类型的数据转换为utf8编码的字符时使用这个函数。 | 35 将ArkTS的字符类型的数据转换为utf8编码的字符。
|
H A D | use-jsvm-about-string.md | 33 OH_JSVM_GetValueStringUtf8接口可以将JavaScript的字符类型的数据转换为utf8编码的字符。
|
H A D | jsvm-data-types-interfaces.md | 1150 创建utf8类型的String,并获取C字符串。
|
/ohos5.0/docs/zh-cn/application-dev/reference/native-lib/ |
H A D | musl.md | 80 |utf8 | | 支持 |
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/src/ |
H A D | file_path.cpp | 82 FilePath FilePath::FromUTF8Unsafe(const std::string &utf8) in FromUTF8Unsafe() argument 84 return FilePath(utf8); in FromUTF8Unsafe()
|
/ohos5.0/docs/en/application-dev/reference/native-lib/ |
H A D | musl.md | 79 |utf8 | | Yes |
|
/ohos5.0/docs/zh-cn/release-notes/ |
H A D | OpenHarmony-v3.0.1-LTS.md | 145 | I4DMFV | 修复utf16到utf8的转换 |
|
/ohos5.0/docs/zh-cn/application-dev/arkts-utils/ |
H A D | source-obfuscation.md | 457 const jsonData = fs.readFileSync('./test.json', 'utf8');
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/ |
H A D | js-apidiff-compiler-and-runtime.md | 57 …utf8'<br> \| 'utf-8'<br> \| 'utf16le'<br> \| 'ucs2'<br> \| 'ucs-2'<br> \| 'base64'<…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-Release/ |
H A D | js-apidiff-compiler-and-runtime.md | 67 |新增|NA|类名:buffer;<br>方法or属性:type BufferEncoding = 'ascii' \| 'utf8' \| 'utf-8' \| 'utf16le' \| 'ucs…
|
/ohos5.0/docs/en/release-notes/api-diff/v4.0-Release-vs-v3.2-Release/ |
H A D | js-apidiff-compiler-and-runtime.md | 57 …utf8'<br> \| 'utf-8'<br> \| 'utf16le'<br> \| 'ucs2'<br> \| 'ucs-2'<br> \| 'base64'<…
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-Release/ |
H A D | js-apidiff-compiler-and-runtime.md | 67 |Added|NA|Class name: buffer;<br>Method or attribute name: type BufferEncoding = 'ascii' \| 'utf8' …
|