Skip to content
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

Lazy Loading & Diacritics #78

Open
vincentmorneau opened this issue Mar 20, 2017 · 2 comments
Open

Lazy Loading & Diacritics #78

vincentmorneau opened this issue Mar 20, 2017 · 2 comments
Assignees
Labels

Comments

@vincentmorneau
Copy link

Default behavior is to ignore diacritics, which is good. When using Lazy Loading we can't control diacritics.

Without Lazy Loading: https://demo.insum.ca/ords/f?p=131:1
With Lazy Loading: https://demo.insum.ca/ords/f?p=131:2

Both examples, you can use Country Canada and Province Québec.

@nbuytaert1 nbuytaert1 self-assigned this Apr 13, 2017
@nbuytaert1 nbuytaert1 added the bug label Apr 13, 2017
@nbuytaert1
Copy link
Owner

The Select2 library takes care of the diacritics search. I didn't support this search algorithm in the PL/SQL code though. When using Lazy Loading, the filtering happens in PL/SQL, thus with diacritics.

Do you know a way to convert all "special" characters to "normal" characters in PL/SQL?

@vincentmorneau
Copy link
Author

Two options comes to mind:

  1. select convert('Québec', 'US7ASCII') diacritics from dual;
  2. select utl_raw.cast_to_varchar2(nlssort('Québec', 'nls_sort=binary_ai')) diacritics from dual;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants