Re: HTML Copyright entity renders as M-)

Thomas Dickey <[email protected]>
Newsgroups gmane.comp.web.lynx.devel
Message-ID <[email protected]>
On Sat, Jun 01, 2024 at 11:55:06PM -0500, Aiden Woodruff wrote:
> Hi Lynx team,
> 
> When viewing the HTML &copy; entity, it's rendered as `M-)`. Is this the
> expected behavior? When I change character mode to ASCII it renders as `(c)`
> which is what I expect, but my terminal supports printing Unicode (as
> confirmed
> with printf). Shouldn't it render the Unicode symbol instead of `M-)`?

It's a configuration detail - assuming that lynx is compiled with ncursesw,
(the wide-character library), then in the options menu you should have
	locale-based character set = ON
	display character set = UNICODE (UTF-8)

(if the first isn't set, lynx will ignore your locale).

If lynx's not using the wide-character library, that copyright symbol gets
interpreted as a "meta" character, and displayed in that form:

	Copyright symbol is 0xA9.
	")" is 0x29.
	The difference is 0x80 (128).

-- 
Thomas E. Dickey <[email protected]>
https://invisible-island.net
smime.p7s (application/pkcs7-signature, 693 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.