There is no standard way to do this. OpenOLAT uses the HTML 4 meta tag
to detect the encoding. If not detected, the system wide default encoding is applied. This automatic detection can also be overridden using the configuration for that page.
Many pages nowadays use the HTML 5 meta tag:
The goal of this issue is to search for both the HTML4 and the HTML5 meta tag for encoding description.