当前位置:网站首页>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
边栏推荐
猜你喜欢
嵌入式Qt-实现两个窗口的切换
手把手教你编写性能测试用例
鲜花线上销售管理系统的设计与实现
c语言结构体、函数以及指针练习(简单通讯录)
惊掉你下巴,程序员编码竟然可以被 996 指数化
Unity顶点动画
Characteristics of the (CAS:1527486-16-3TAMRA-azide-PEG3-Biotin) reaction in biotin azide!
开发IM即时通讯容易吗?需要什么技术
Penetration Testing and Offensive and Defense Confrontation - Vulnerability Scanning & Logic Vulnerability (Part1)
FITC标记生物素(FITC-生物素|CAS:134759-22-1)有哪些知识了?
随机推荐
头脑风暴:单词拆分
这一次,话筒给你:向自由软件之父 Richard M. Stallman 提问啦!
嵌入式Qt-实现两个窗口的切换
03|Process Control
什么是 PWA
Data storage - the C language
跨部门沟通的技巧
为什么字符串一旦创建就不可以改变?
2022金九银十工作潮,怎么样才能成功跳槽面试拿到高薪呢?
CAS:183896-00-6 (Biotin-PEG3-C3-NH2) PEG derivative
什么是持续测试?
【CAS:41994-02-9 |Biotinyl tyramide】Biotinyl tyramide price
微信小程序tab切换时保存checkbox状态
assert利用蚁剑登录
递归 二分查找 冒泡排序 快速排序
商业模式及其 SubDAO 深入研究
C语言头文件组织与包含原则
egg.js中Class constructor BaseContextClass cannot be invoked without ‘new‘解决方法
Xi'an biotin-tetrapolyethylene glycol-amide-4phenol light yellow semi-solid
-Vector Dot Product-