android-studio - 在蓝牙打印机上以阿拉伯语打印
问题描述
我使用蓝牙打印机,但不支持阿拉伯语我尝试了很多方法,也使用了 UTF-8,但不起作用有没有办法在打印中显示阿拉伯语?
String msg = "مرحبا";
//msg= URLEncoder.encode(msg,"UTF-8");
//StandardCharsets.UTF_8
//"UTF-8"
outputStream.write(msg.getBytes("UTF-8"));
解决方案
推荐阅读
- angular - enableIvy 增加了包大小,如何最好地使用 Ivy 打包?
- java - 如何在 Stripe Express 入职时预填手机号码、业务类型?
- python - 努力反编译这个 .pyc 文件并恢复我的 python 文件(不小心删除了它)
- android - Android Jetpack Compose mutableStateListOf 不做重组
- amazon-web-services - aws - 通过基于子域的应用程序负载均衡器路由请求
- apache-spark - pyspark 中的列级沿袭
- java - 带有证书(.crt)和带有密码的私钥(.pem)的 java http 客户端
- r - 在 R Shiny 中,如何为一系列链接矩阵输入建立反应链?
- reactjs - 当作为道具值传递时,用户输入是未定义的。任何人都可以建议编辑吗?
- webpack - 热重载正在工作,但只有当我关注浏览器或单击文档时才会发生