softwerkab / fortnox-csharp-api-sdk

.NET SDK for Fortnox API.
MIT License
52 stars 64 forks source link

HttpUtility.UrlEncode in BaseRequest doesn't handle special characters #174

Closed Axemaningrosso closed 2 years ago

Axemaningrosso commented 3 years ago

It encodes space to + breaking our integration when there are articles with space in the ArticeleNumber(Very many years of data)

richardrandak commented 3 years ago

Weird.. space in an identificator? It is no longer to possible to create such ArticleNumber. Anyway... so you would prefer '%20' instead of '+' right?

Can you call Find method and tell me what is in the Url property for that article? Just to confirm they are encoding it with '%20'.

richardrandak commented 3 years ago

I changed the URI handling in the base request.. the main difference is encoding the space as "%20" instead of "+". Let me know if that solves your issue.

richardrandak commented 2 years ago

Hello @Axemaningrosso ! Does it work for you now? Please let me know, so I can close this issue.