Unity Issue Tracker - "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Fixed
UUM-70240
"System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Unity: Mono
Fixed
6.0.X
2022.3.X
2021.3.X
Won't Fix
2023.2.X
Cancelling this 2023.2 tech release issue since the support for this release has come to end of life. Cancelling this 2023.2 port case does not affect any LTS or Unity 6 Beta/Preview that remain open.
How to reproduce:
1. Make sure to switch the system locale to one that does not conform to [Internal link] 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 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
Prioritise and Follow this issue
Have a workaround or additional info about this issue?