简体   繁体   English

aspose 单词中的特殊字符编码

[英]Special character encoding in aspose words

I'm using aspose cells, word to treat a csv file and copy it into a Word template and finally convert it to Pdf.我正在使用 aspose 单元格,word 来处理 csv 文件并将其复制到 Word 模板中,最后将其转换为 Pdf。 On dev env it works like a charm, how ever in production I have some letter like ö which does not appear only in production env.在开发环境中,它就像一个魅力,但是在生产中我有一些像 ö 这样的字母,它不仅出现在生产环境中。 I suspected substituon or fallback issue as as there is diffrence between fonts in both pdf files, the diffrence is times new roman font, in one file it is true type Cid with encodage identity h versus true type with encodage ANSI.我怀疑替代或后备问题,因为 pdf 文件中的 fonts 之间存在差异,差异是新罗马字体的倍数,在一个文件中它是具有编码标识 h 的真实类型 Cid 与具有编码标识的真实类型 ANSI。 Is reinstalling the font will help?重新安装字体会有帮助吗? If not any alternatives?如果没有其他选择?

Thanks for your helps.感谢您的帮助。

Thank you for your request.感谢您的要求。 Yes, the reason of the problem is probably causes by difference in fonts in your development and production environments.是的,问题的原因可能是您的开发和生产环境中的 fonts 不同造成的。 Installing the same set of fonts in your production environment should fix the problem.在您的生产环境中安装同一套 fonts 应该可以解决问题。 As an alternative you can put the required fonts in a folder and specify this folder as a fonts source.作为替代方案,您可以将所需的 fonts 放在文件夹中,并将此文件夹指定为 fonts 源。 https://apireference.aspose.com/net/words/aspose.words.fonts/fontsettings If you have any further questions you can ask here or in the forum - the main place for support. https://apireference.aspose.com/net/words/aspose.words.fonts/fontsettings如果您有任何其他问题,您可以在这里或在论坛中提问 - 主要支持的地方。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM