X
Tap here to go to the mobile version of the site.

ஆதரவு மன்றம்

I can't change charset for viewed web-page

  • 6 replies
  • 1 இந்த பிரச்சனை உள்ளது
  • Last reply by cor-el
பதிவிடப்பட்டது

Previously Firefox have an function and could change charset by custom control. But, now this action is disabled in menu. I need use it for web-developing and testing.

How to activate this function?

Firefox 64.0.2 x64

Previously Firefox have an function and could change charset by custom control. But, now this action is disabled in menu. I need use it for web-developing and testing. '''How to activate this function?''' Firefox 64.0.2 x64
Attached screenshots

PyGreen மூலமாக திருத்தப்பட்டது

மேற்கோள்

Additional System Details

நிறுவப்பட்ட நிரல்கள்

  • Shockwave Flash 32.0 r0

பயன்பாடு

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0

கூடுதல் தகவல்

jscher2000
  • Top 10 Contributor
8516 தீர்வுகள் 69554 பதில்கள்
பதிவிடப்பட்டது

I think Firefox only enables the menu if the server does not send a character set header and the page also does not contain a meta tag declaring the charset.

I see this is not new: http://forums.mozillazine.org/viewtopic.php?f=38&t=3041063 (off site link)

I think Firefox only enables the menu if the server does not send a character set header and the page also does not contain a meta tag declaring the charset. I see this is not new: http://forums.mozillazine.org/viewtopic.php?f=38&t=3041063 (off site link)
இது உங்களுக்கு பயனுள்ளதாக இருந்ததா?
மேற்கோள்
பதிவிடப்பட்டது

கேள்வியின் உரிமையாளர்

No, server send headers (it's local server on PC). I looked link, but it can't help.

Can I activate the element menu and change charset forcly with about:config?

No, server send headers (it's local server on PC). I looked link, but it can't help. Can I activate the element menu and change charset forcly with '''about:config'''?

PyGreen மூலமாக திருத்தப்பட்டது

இது உங்களுக்கு பயனுள்ளதாக இருந்ததா?
மேற்கோள்
jscher2000
  • Top 10 Contributor
8516 தீர்வுகள் 69554 பதில்கள்
பதிவிடப்பட்டது

PyGreen said

No, server send headers (it's local server on PC). I looked link, but it can't help.

Yes, if the server sends charset, the menu is disabled. While debugging, can you omit that header?

Can I activate the element menu and change charset forcly with about:config?

When you click View, Firefox sets disabled="true" on the Text Encoding item, so regardless of it's appearance, it doesn't respond to clicks. I don't know of a way using CSS to override the functional aspect.

''PyGreen [[#answer-1230243|said]]'' <blockquote> No, server send headers (it's local server on PC). I looked link, but it can't help. </blockquote> Yes, if the server sends charset, the menu is disabled. While debugging, can you omit that header? <blockquote>Can I activate the element menu and change charset forcly with '''about:config'''? </blockquote> When you click View, Firefox sets '''disabled="true"''' on the Text Encoding item, so regardless of it's appearance, it doesn't respond to clicks. I don't know of a way using CSS to override the functional aspect.
இது உங்களுக்கு பயனுள்ளதாக இருந்ததா?
மேற்கோள்
பதிவிடப்பட்டது

கேள்வியின் உரிமையாளர்

But this behavior doesn't work for some sites, eg: on at screenshot..

But this behavior doesn't work for some sites, eg: on at screenshot..
இது உங்களுக்கு பயனுள்ளதாக இருந்ததா?
மேற்கோள்
jscher2000
  • Top 10 Contributor
8516 தீர்வுகள் 69554 பதில்கள்
பதிவிடப்பட்டது

PyGreen said

But this behavior doesn't work for some sites, eg: on at screenshot..

If the server and page do not set the charset, and the browser falls back to the default, then the Text Encoding menu is enabled. For example: https://www.jeffersonscher.com/res/quirks.html

''PyGreen [[#answer-1230570|said]]'' <blockquote> But this behavior doesn't work for some sites, eg: on at screenshot.. </blockquote> If the server and page do not set the charset, and the browser falls back to the default, then the Text Encoding menu is enabled. For example: https://www.jeffersonscher.com/res/quirks.html
இது உங்களுக்கு பயனுள்ளதாக இருந்ததா?
மேற்கோள்
cor-el
  • Top 10 Contributor
  • Moderator
17277 தீர்வுகள் 156160 பதில்கள்
பதிவிடப்பட்டது

I found a tricky way to enable the Text Encoding menu. This involves using the Browser Toolbox to keep pop-up menus open or use about:config (ui.popup.disable_autohide = true) and the Browser Console.

You can run this code in the Browser Toolbox or the Browser Console with either the View menu open or the encoding list visible via "3-bar menu -> More -> Text Encoding".

/* View -> Text Encoding */
window.document.getElementById("charsetMenu").removeAttribute("disabled");
/* app-menu -> More -> Text Encoding */
elm = window.document.getElementById("PanelUI-characterEncodingView");
elm = elm.getElementsByClassName("subviewbutton");
for(E in elm){try{elm[E].removeAttribute("disabled")}catch(e){}}
I found a tricky way to enable the Text Encoding menu. This involves using the Browser Toolbox to keep pop-up menus open or use about:config (ui.popup.disable_autohide = true) and the Browser Console. You can run this code in the Browser Toolbox or the Browser Console with either the View menu open or the encoding list visible via "3-bar menu -> More -> Text Encoding". <pre><nowiki>/* View -> Text Encoding */ window.document.getElementById("charsetMenu").removeAttribute("disabled"); /* app-menu -> More -> Text Encoding */ elm = window.document.getElementById("PanelUI-characterEncodingView"); elm = elm.getElementsByClassName("subviewbutton"); for(E in elm){try{elm[E].removeAttribute("disabled")}catch(e){}}</nowiki></pre>
இது உங்களுக்கு பயனுள்ளதாக இருந்ததா?
மேற்கோள்
கேள்வி எழுப்பு

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.