Find/Replace locale support

Hello,

When using find/replace methods we have a problem with case sensitivity for Turkish 'İ' and 'I' letters. In Turkish alphabet lowercase of 'İ' is 'i' letter and lowercase of 'I' is 'ı' letter. When I trying to find 'İstanbul' in document without or wıth case sensitivity by 'istanbul' there is no result. Could you add locale support for find/replace functions?


example:

const dotted = 'istanbul';

console.log(`EN-US: ${dotted.toLocaleUpperCase('en-US')}`);

// expected output: "ISTANBUL"

console.log(`TR: ${dotted.toLocaleUpperCase('tr')}`);

// expected output: "İSTANBUL"


Best Regards


6 Replies

SM Suriya Murugan Syncfusion Team June 21, 2022 06:09 AM UTC

Hi AB,


Please check the below screenshot for reference: 




Please try the search the same text and it will work properly.




You can cross check the same behaviour in MS Word also and Documenteditor working similar to MS Word.





Regards,

Suriya M.






AB AB June 21, 2022 06:15 AM UTC

Hi Suriya,

Could you try to search with 'istanbul' (all lowercase) again. It won't find the text.

Regar



SM Suriya Murugan Syncfusion Team June 23, 2022 04:37 PM UTC

Hi AB,


In MS Word, also if you search with  'istanbul' (all lowercase) again. It won't find the text.


Documenteditor considered the same.


Regards,

Suriya M.



AB AB June 24, 2022 12:04 PM UTC

That is actually a bug that Microsoft didn't fix yet for Turkish locale.




SM Suriya Murugan Syncfusion Team June 28, 2022 04:04 AM UTC

Hi AB,


We will check and update details shortly.


Regards,

Suriya M.



SM Suriya Murugan Syncfusion Team June 29, 2022 03:27 AM UTC

Hi AB,


Document editor will consider this case once microsoft fix this case. In meantime, as a workaround, you can use find and replace API to achieve your functionality.

https://ej2.syncfusion.com/documentation/document-editor/find-and-replace/#find-the-immediate-occurrence-in-the-document

In find, parameter send the localized text.


Please let us know if you need any further assistance.



Regards,

Suriya M.


Loader.
Up arrow icon