Created a web application on servlets with the tomcat server and ran into an encoding problem.
French characters are output to the console and written to a file in this form.
Rue AndrГ © CitroГ «n
I have defined the JAVA_OPTS variable in the setenv.bat file as
set "JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8" Charset.defaultCharset () displays "UTF-8"
At the same time, I write everything perfectly in the MySQL database without kryakozyabry.