Personal Video Database

English => Support => Topic started by: pra15 on November 12, 2020, 07:40:14 pm

Title: Need help for accented characters
Post by: pra15 on November 12, 2020, 07:40:14 pm
I don't understand nothing about this problem.

I'm french, so i use many accented words.

I try to change value of CODE_PAGE in scripts but this not resolve the problem.

If someone have an idea to resolve this ........

Thanks.
Title: Re: Need help for accented characters
Post by: Ivek23 on November 12, 2020, 08:51:58 pm
Quote
CODE_PAGE      =28591 ;

Maybe Code Page Identifiers (https://docs.microsoft.com/en-us/windows/win32/intl/code-page-identifiers?redirectedfrom=MSDN) help solve the problem.
Title: Re: Need help for accented characters
Post by: pra15 on November 12, 2020, 10:01:59 pm
Thanks for the link, 28591 doesn't work i'll try others.

I tried most of them except cyrilic chinese ...... but nothing works.
Title: Re: Need help for accented characters
Post by: Ivek23 on November 13, 2020, 06:57:47 pm
Quote
CODE_PAGE      =0 ;  //Use 0 for Autodetect

What this also does not work. Then unfortunately I have no idea how to solve this problem.
Title: Re: Need help for accented characters
Post by: pra15 on November 14, 2020, 09:46:26 pm
Finally I got around the problem and I use the function I had created in the egafd script for the search I use stringreplace in the text sent to parsepage (HTML) and I put the code_page at 65001 because my file psf is in utf-8.
It seems that it works, remains to complete the list of my accented characters in the function.

A very practical little utility to know the encoding code used on a web page : NUniversalCharDet