-
-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
utf8 is not supported #785
Comments
@Krzywson i've solved... I solved the problem. httpWebRequest.UserAgent = @"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36"; (Version of WooCommerceNET 0.8.6) @XiaoFaye URGENT!!! since this morning I have the same problem. 'utf8' non è un nome di codifica supportato. Per informazioni sulla definizione di una codifica personalizzata, vedere la documentazione del metodo Encoding.RegisterProvider. |
@RBSystemService I will check it out today. Gonna give result. Thanks for replying |
Its working. :) |
Hello,
I have got error after fetching from woo api
rest = new RestAPI(shop.ShopApiUrl, shop.KeyApi, secretId); wc = new WCObject(rest); var date = dateFrom.ToUniversalTime().AddMinutes(-3).ToString("u").Replace(" ", "T"); try { var ordersFromShop = await wc.Order.GetAll(new Dictionary<string, string>() { {"order", "desc" }, {"modified_after", date}, {"per_page", "100" }, {"status","pending,processing" } }); orders = ordersFromShop; } catch (Exception ex) { throw new Exception($"Ta linia powoduje błąd {ex.Message} {ex.InnerException} </br> {orders.ToString()}"); }
Error
'utf8' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. (Parameter 'name')
System.Collections.Generic.List`1[WooCommerceNET.WooCommerce.v3.Order]
I check everything in woo. Has anyone encountered such an error?
I expect the problem is on the woocommerce side, as 2 other stores use the same C# method
The text was updated successfully, but these errors were encountered: