Search Issue Tracker
Fixed
Fixed in 2021.3.42f1, 2022.3.40f1, 6000.0.17f1, 7000.0.0a1
Votes
17
Found in
2021.3.37f1
2022.3.26f1
2023.2.19f1
6000.0.0b16
7000.0.0a1
Issue ID
UUM-70240
Regression
No
"System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
How to reproduce:
1. Make sure to switch the system locale to one that does not conform to UTF-8 like “Japanese (Japan)”
2. Make sure that the hostname contains multi-byte characters like “あいうえお”
3. Open the “illegal-argument-exception“ project
4. Open the “SampleScene”
5. Observe the Console
Expected result: No errors are thrown
Actual result: The “ArgumentException: Illegal byte sequence encounted in the input.” error is thrown
Reproduced with: 2021.3.37f1, 2022.3.26f1, 2023.2.19f1, 6000.0.0b16
Reproduced on: Windows 10 (by reporter), Windows 11
Not reproduced on: No other environment tested
Notes:
1. Full error is provided in the internal comments
2. Detailed instructions on how to switch locale and hostname are provided in the internal comments
Comments (3)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Render Pipeline Converter selected asset counter reports one fewer item when using manual selection
- [Android] [Adreno] [WebGL] A light cookie is not rendered with shader compile error when WebGL build is launched on a device with Adreno GPU
- Rigibody sliding over a flat surface that is made of several GameObjects detects false collisions when Collision Detection is set to "Continuous" or "Continuous Dynamic"
- UI Toolkit Label height is incorrectly calculated when using max-width with percentage value
- Visual Effect Material causes Scene view to update continuously when both Scene and Game views are open, despite "Always Refresh" being disabled
daddygaming1
Jun 01, 2024 20:39
The "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname, as observed in various Unity versions on Windows 10 and Windows 11.
MarkK11
May 10, 2024 10:39
To fix the ArgumentException error with System.Net.CookieContainer, ensure the hostname is in a UTF-8 compatible format. Change the hostname to avoid non-UTF-8 characters or properly encode it before use.
BrandyN11
May 04, 2024 09:29
To resolve the ArgumentException error with System.Net.CookieContainer, ensure that the hostname is in a UTF-8 compatible format. If the hostname contains multi-byte characters, like Japanese characters, it can cause this error. You may need to change the hostname to avoid non-UTF-8 characters or encode the hostname properly before using it in your project.