openoffice4-jodconverter2-txt纯文本linux环境中文乱码成问号?或方口

在部署openoffice4-jodconverter到Linux(CentOS)环境中时,遇到txt文件中文乱码问题,表现为问号或方框。尝试过上传Windows字体库、转存为UTF-8编码等方法未解决问题。最终解决方案是使用Windows 7的字体库,乱码问题得到解决。
摘要由CSDN通过智能技术生成

背景

  1. jodconverter依赖信息
    <dependency>
    	<groupId>org.jodconverter</groupId>
    	<artifactId>jodconverter-core</artifactId>
    	<version>4.2.2</version>
    </dependency>
    <dependency>
    	<groupId>org.jodconverter</groupId>
    	<artifactId>jodconverter-local</artifactId>
    	<version>4.2.2</version>
    </dependency>
    <dependency>
    	<groupId>org.jodconverter</groupId>
    	<artifactId>jodconverter-spring-boot-starter</artifactId>
    	<version>4.2.2</version>
    </dependency>
    
  2. openoffice版本信息
    Apache_OpenOffice_4.1.11_Linux_x86-64_install-rpm_zh-CN.tar.gz
    
  3. 异常情况:本地windows10测试各类文件转换正常,部署至linux环境,纯文本txt中文乱码,其他格式正常。

试错

  1. 上传本地windows10的中文字体库至linux中,txt中文乱码成问号。
  2. 上报本地windows10的全部字体至linux中,txt中文乱码成方口。
  3. 使
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值