当前位置:网站首页>Problems and solutions related to Chinese character set in file operations in ABAP
Problems and solutions related to Chinese character set in file operations in ABAP
2022-08-10 02:12:00 【Wang Zixi】
In practical projects, especially some system integration projects, we often encounter scenarios where we need to receive and parse the binary stream sent from the remote end.The content of this binary stream may be some binary files, such as files in PDF, JPG and other formats, or may be text files.For text files, we need to restore the binary stream to human-readable text.This is the topic that this article will focus on.
Before starting this step, please be sure to complete the previous chapters:
How to upload local files in binary mode in ABAP report
This pre-chapter uploads a text file to the ABAP server in binary form to simulate a binary stream provided by a remote content provider (Content Provider), the type is xstring
. The actual content of these binary streams is some text containing Chinese characters. Our task in this article is to convert these binary streams back into user-readable text, and then print them out.
We create a new text file, enter a Chinese character wang
, save the file name as wang-utf8.txt
, select UTF-8 for encoding.
The size of this file is shown as 3 bytes.This is in line with our expected behavior, because UTF-8 is an implementation of Unicode, and the Unicode value of a Chinese character ranges from 0X4E00 to 0x9FA5, which requires 3 bytes if UTF-8 is used.
We pass this
边栏推荐
- R语言使用coxph函数构建生存分析回归模型,使用forestmodel包的forest_model函数可视化生存回归模型对应的森林图
- Pagoda measurement - building LightPicture open source map bed system
- 鲜花线上销售管理系统的设计与实现
- 即时通讯开发如何撸一个WebSocket服务器
- Win11怎么关闭系统保护功能?系统保护还原功能怎么关闭?
- R语言使用glm函数构建logistic回归模型,使用forestmodel包的forest_model函数可视化逻辑回归模型对应的森林图
- 【报错】ModuleNotFoundError: No module named ‘scp‘
- 商业模式及其 SubDAO 深入研究
- 走出迷宫的最少步数2
- flask——请求、响应、请求扩展、session、闪现、蓝图、g对象、flask-session
猜你喜欢
Quick responsiveness intelligent/smart responsiveness of polyethylene glycol type nano/reduction response hydrogels research and preparation
CAS:851113-28-5 (Biotin-ahx-ahx-tyramine)
开发IM即时通讯容易吗?需要什么技术
y92.第六章 微服务、服务网格及Envoy实战 -- Envoy基础(三)
商业模式及其 SubDAO 深入研究
鲜花线上销售管理系统的设计与实现
即时通讯开发如何撸一个WebSocket服务器
数据的存储——C语言
assert利用蚁剑登录
改变社交与工作状态的即时通讯是什么呢?
随机推荐
FITC标记生物素(FITC-生物素|CAS:134759-22-1)有哪些知识了?
C语言头文件组织与包含原则
GBJ1510-ASEMI机器人电源整流桥GBJ1510
ASEMI整流桥GBJ1010参数,GBJ1010规格,GBJ1010封装
生物素叠氮化物中的(CAS:1527486-16-3TAMRA-azide-PEG3-Biotin)反应的特点!
由生物素参与的D-Biotinol,CAS号:53906-36-8具体特性说明
oracle的数据导入导出
初步认识对象
使用 apxs 构建和安装 Apache 扩展共享对象模块
地雷数量求解
R语言使用glm函数构建logistic回归模型,使用forestmodel包的forest_model函数可视化逻辑回归模型对应的森林图
What do you know about FITC-labeled biotin (FITC-biotin|CAS: 134759-22-1)?
【ROS2原理10】Interface数据的规定
解决sed替换文本,里面含有“/“、“#”等特殊字符的问题
手把手教你编写性能测试用例
Sikuli 基于图形识别的自动化测试技术
02|运算符
小程序中计算距离信息
C language pointer practice questions
你有对象类,我有结构体,Go lang1.18入门精炼教程,由白丁入鸿儒,go lang结构体(struct)的使用EP06