开发者

UPS API - What encoding should I use?

I'm implementing shipping into my application and I have problems with polish chars. On generated label they appear as '?'. Client is written in C# so al开发者_如何学Gol my strings are Unicode. Maybe you know in what encoding I should send data to get polish chars?

I send:

gęśla jaźń

And on the .gif label there is:

g??la ja??

It seems that UPS expected text in different encoding, but I can't find which.

The code:

 ShipToType upsShipTo = new ShipToType();
 upsShipTo.Name = shipToNameTextBox.Text;


I've got answer from UPS: api uses latin1 charset so it doesn't support polish chars.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜