简体   繁体   English

在Talend中访问数据库编码cp1250

[英]Access database encoding cp1250 in Talend

I have problem with encoding in Talend when reading Access (.mdb) file. 读取Access(.mdb)文件时,我在Talend中编码存在问题。 All day I'm stuck and looking for the solution. 我整日忙于寻找解决方案。

In Access one column has characters contain(½,¼,¾). 在Access中,一列的字符包含(1/2,¼,¾)。 In that column, data is like 3¾. 在该列中,数据类似于3¾。 Symbols are part of the CP1250 encoding page. 符号是CP1250编码页面的一部分。

Problem is when I am reading the Access file with tAccessInput transformation. 问题是当我通过tAccessInput转换读取Access文件时。 All I got as the result is like 3?. 我得到的结果只有3个。 Question mark stands for ¾ simbol. 问号代表¾simbol。

I am looking for the additional parameter for the Access JDBC connection. 我正在寻找Access JDBC连接的其他参数。 I have tried many combinations with values like "encodind=cp1250", didn't work. 我尝试过使用“ encodind = cp1250”之类的值进行多种组合,但无法正常工作。

I have already write java custom class that parses string value like 4¾, 2½ into the decimal. 我已经写了java自定义类,将字符串值4¾,2½解析为小数。

Screen shot of the Talend job: https://www.dropbox.com/s/id1poblmcfdrsd9/PrtScr.jpg Talend作业的屏幕截图: https : //www.dropbox.com/s/id1poblmcfdrsd9/PrtScr.jpg

Thanks for any help. 谢谢你的帮助。

Josip 约瑟普

您需要在“高级设置”选项卡的"charSet=windows-1250"其他JDBC参数”字段中指定"charSet=windows-1250"

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

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