Aspose.psd for java解析psd图层中文名称时出现乱码

image.png (69.3 KB)
image.png (348.8 KB)
the real ayerName is “文本1”, but It is “???1” when I used aspose.psd for java api to parse the layername.

@churui

解析PSD图层中文名称时出现乱码的问题,可能与字符编码处理有关。确保在读取图层名称时,使用正确的字符编码,例如UTF-8。

在使用Aspose.PSD for Java进行PSD图层操作时,您可以通过以下步骤来尝试解决此问题:

  1. 确保您的项目中已经正确设置了Aspose.PSD for Java。
  2. 在读取图层名称之前,确保文件的编码格式正确。
  3. 使用适当的方法获取图层名称,并确保将其转换为支持中文字符的格式。

如果问题仍然存在,建议检查Aspose.PSD的官方文档,获取更多关于图层操作的详细信息和示例,或者尝试更新到最新版本的Aspose.PSD,以避免已知的编码问题。

若您需要关于如何使用Aspose.PSD进行具体操作的示例,请随时告知!

@churui
Could please provide the input file. Also, please check property getDisplayName Working with Layers|Documentation if it works in the same way.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PSDJAVA-741

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

thank you! I have resolved this problem by useing “getDisplayName”.

1 Like