Category url decoding problem, refresh page is 404
I am working on a wordpress v5.2.4 site that has Arabic language and words in URL which is causing an odd issue.
I create a category:
خطوط إرشاد which is creating a slug url:
The encoded URL is
Which loads fine but when I click refresh I get a 404 and the uRL becomes (in both Chrome and Firefox latest)
I dont know why the URL is changing to capital characters or why capital charater encoded URL wont work as my understanding is that encoded characters are the same in both lower and upper cases ie
%D8 == %d8
Any help is appreciated.