开发者

What is the default VB6 charset?

we have an application written in Java which reads some text generated by a VB6 application. The problem is: this VB6 application generate this output using some spe开发者_如何学Ccial characters, like ç,ã,á which we don't know in what charset.

So the question is: is there a default charset used by VB6? Which is it?


how do you transfer the data from one to the other? via file? if yes then it uses the machine default encoding i don't know the java code to get it, but in c# its Encoding.Default...


Well,

here is what we discovered: We don't know if that was because our VB6 application was executed on the command line,but it was actually using the MS-DOS environment default charset, which in our case was the windows-1252.

So, all we had to do was to change our Java code to something like this:

InputStreamReader inputReader = new InputStreamReader(input, "windows-1252");

and it just worked fine!

Maybe it's even not because of the MS-DOS environment, but because we are getting this data from a Microsoft Access database. Personally, I think that this is the most probably solution for our problem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜