Sp00f / ff-activex-host

Automatically exported from code.google.com/p/ff-activex-host
0 stars 0 forks source link

Char encoding #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
May be I will be the author of most issues :)). Because we want to use 
this component in real application. So we do as many tests as possible :)

Issue with string parameters in method calls. All non us character 
transferred not correctly. In IE all is ok in active x. In ff all non us 
symbols have problems (for example swedish, german). We use BSTR as 
parameter type in control. I think problem is somewhere in scriptable.h 
invoke. I am trying to investigate this but may be you have other ideas.

Original issue reported on code.google.com by yauhe...@gmail.com on 23 Dec 2008 at 8:02

GoogleCodeExporter commented 8 years ago
Can't test it atm, but I suggest you look at variants.cpp, line 171:

var->bstrVal = SysAllocString(A2OLE(npvar->value.stringValue.utf8characters));

I suspect that the utf8 string needs to be converted some other way before it's 
a
proper BSTR.

Original comment by leeor.ah...@gmail.com on 23 Dec 2008 at 8:12

GoogleCodeExporter commented 8 years ago
Committed the fix you sent me.

Thanks!

Original comment by leeor.ah...@gmail.com on 23 Dec 2008 at 1:14

GoogleCodeExporter commented 8 years ago
the same with parameters of object... so also need fix..

Original comment by yauhe...@gmail.com on 23 Dec 2008 at 3:21

GoogleCodeExporter commented 8 years ago

Original comment by leeor.ah...@gmail.com on 6 Feb 2009 at 1:20