08:58 | <sideshowbarker> | If an HTML document is served with a Content-Type: text/html HTTP header — without a charset parameter — but with a <meta charset="shift_jis"> element, then the spec requirements are that UAs must respect the <meta charset="shift_jis"> element — and use shift_jis as the character encoding, right? |
08:58 | <sideshowbarker> | I’m specifically looking at https://www.ntt-west.co.jp/news/1504/150417a.html |
09:15 | <annevk> | sideshowbarker: yup. |
09:16 | <annevk> | A BOM can override all technically, but that website does not appear to have one. |
09:19 | <sideshowbarker> | OK, the https://webirc.w3.org/ client (which is an instance of https://thelounge.chat) seems to not handle the encoding properly — even regardless of whether it’s set in the Content-Type header |
09:20 | <sideshowbarker> | That client does previews of any link you post — just as Matrix does here |
09:21 | <sideshowbarker> | https://www.w3.org/2025/tests/shift_jis-encoding.html is a demo of the same document, but with a proper Content-Type: text/html; charset=shift_jis HTTP header. But in TheLounge, the preview for it is mojibake |
09:23 | <sideshowbarker> | Anyway, maybe I’ll try to write a patch for it. That Lounge is otherwise a really great client. Among other things, it enables you to stay on an IRC channel persistently — even after you close the browser tab, or close the browser. Like IRCCloud or whatever |
11:54 | <s rajasekaran> | Good Day to all. I am new to coding as well as this community. |
11:56 | <s rajasekaran> | I have trying to copy iframe from youtube source and executing in html coding. the frame is showing but video unable to view. if i paste the url again in second line , then the second line video shows properly. May i know how i have to recitfy this. |
18:46 | <TabAtkins> | This server is about developing HTML and related web standards. For technical coding questions, please ask on Stack Overflow or other dev-focused communities. |