当前位置:网站首页>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
边栏推荐
- 由生物素参与的D-Biotinol,CAS号:53906-36-8具体特性说明
- 五种定位——粘性定位
- mstsc/Mstsc (Microsoft terminal services client)远程桌面连接
- -Knight Parade-
- Web性能测试模型小结
- RedHat红帽RHEL7安装与使用,VMware Workstation16 Pro虚拟机的安装与使用
- 分析 20 个 veToken 生态系统协议 这种代币模型为何受欢迎?
- How to activate the payment function on WeChat official account?
- What should I do if there is no sound after reinstalling the system in win10?
- 以太网PHY芯片LAN8720A芯片研究
猜你喜欢

ASEMI整流桥GBJ1010参数,GBJ1010规格,GBJ1010封装

Solidity最强对手:MOVE语言及新公链崛起

CAS:851113-28-5 (Biotin-ahx-ahx-tyramine)

03|流程控制

D-Biotinol Involved by Biotin, CAS No: 53906-36-8 Specific Properties Description

手把手教你编写性能测试用例

由生物素参与的D-Biotinol,CAS号:53906-36-8具体特性说明

Solidity最强对手:MOVE语言及新公链崛起

Mysql数据库 ALTER 基本操作

快速响应性智能型/智能响应性聚乙二醇纳米/还原响应型水凝胶的研究与制备
随机推荐
快速响应性智能型/智能响应性聚乙二醇纳米/还原响应型水凝胶的研究与制备
Win7怎么把控制面板添加到右键菜单
RedHat红帽RHEL7安装与使用,VMware Workstation16 Pro虚拟机的安装与使用
Solidity最强对手:MOVE语言及新公链崛起
基于Web的疫情隔离区订餐系统
y92.第六章 微服务、服务网格及Envoy实战 -- Envoy基础(三)
DALL·E-2是如何工作的以及部署自己的DALL·E模型
-Chess game-
20220809-PotPlayer如何设置默认字体色-设置默认字体色的方法
Interlay集成至Moonbeam,为网络带来interBTC和INTR
OSS-访问oss生成的url无法访问,直接下载问题
头脑风暴:单词拆分
输入的这些数是否对称
为什么字符串一旦创建就不可以改变?
Sikuli 基于图形识别的自动化测试技术
小程序中计算距离信息
Fedora 36 dnf 安装ModSecurity和 OWASP 核心规则集
-象棋比赛-
走出迷宫的最少步数2
什么是持续测试?