how to change page encoding?

View: New views
7 Messages — Rating Filter:   Alert me  

how to change page encoding?

by Chengqi Song :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi,

i cannot find help on encoding by "c-h a" or "g conkerorwiki encoding",
so i begin to doubt if conkeror supports changing encoding right now.
could you tell me how? im using the latest git version.

best
lars
_______________________________________________
Conkeror mailing list
Conkeror@...
https://www.mozdev.org/mailman/listinfo/conkeror

Re: how to change page encoding?

by John J. Foerch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> hi,
>
> i cannot find help on encoding by "c-h a" or "g conkerorwiki encoding",
> so i begin to doubt if conkeror supports changing encoding right now.
> could you tell me how? im using the latest git version.
>
> best
> lars

Unfortunately we don't have that command yet.

--
John Foerch

_______________________________________________
Conkeror mailing list
Conkeror@...
https://www.mozdev.org/mailman/listinfo/conkeror

Re: how to change page encoding?

by Chengqi Song :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

is there any plan on this? it's important for CJK users, especially
Chinese users, because there are several Chinese encodings...

lars

On Wed, 31 Dec 2008, John J Foerch wrote:

> > hi,
> >
> > i cannot find help on encoding by "c-h a" or "g conkerorwiki encoding",
> > so i begin to doubt if conkeror supports changing encoding right now.
> > could you tell me how? im using the latest git version.
> >
> > best
> > lars
>
> Unfortunately we don't have that command yet.
>
> --
> John Foerch
>
> _______________________________________________
> Conkeror mailing list
> Conkeror@...
> https://www.mozdev.org/mailman/listinfo/conkeror
_______________________________________________
Conkeror mailing list
Conkeror@...
https://www.mozdev.org/mailman/listinfo/conkeror

Re: how to change page encoding?

by John J. Foerch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> is there any plan on this? it's important for CJK users, especially
> Chinese users, because there are several Chinese encodings...

There is now.. I started researching this, and opened an issue on our
tracker:

  http://bugs.conkeror.org/issue112

If you have any ideas for the UI by which to specify the charset to
force, please share them.  I think it would be annoying to have to issue
the force-charset command (or whatever we decide to call it) for every
single page served with the wrong charset.

Perhaps there could be a data-structure associating url regexps with
charset overrides defined in the rc, and this structure could be used to
automatically force charsets for those pages.

--
John Foerch

_______________________________________________
Conkeror mailing list
Conkeror@...
https://www.mozdev.org/mailman/listinfo/conkeror

Re: how to change page encoding?

by Chengqi Song :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In fact now most webpages have correct charset specification, so a
simple command: "set-page-encoding GB2312" is good enough:)

The regexp-pattern method is very considerable but not very neccessary.
Moreover, if someone really needs that feature, he/she can make an
on-loading hook in rc-file.

best
lars

On Wed, 31 Dec 2008, John J Foerch wrote:

> > is there any plan on this? it's important for CJK users, especially
> > Chinese users, because there are several Chinese encodings...
>
> There is now.. I started researching this, and opened an issue on our
> tracker:
>
>   http://bugs.conkeror.org/issue112
>
> If you have any ideas for the UI by which to specify the charset to
> force, please share them.  I think it would be annoying to have to issue
> the force-charset command (or whatever we decide to call it) for every
> single page served with the wrong charset.
>
> Perhaps there could be a data-structure associating url regexps with
> charset overrides defined in the rc, and this structure could be used to
> automatically force charsets for those pages.
>
> --
> John Foerch
>
> _______________________________________________
> Conkeror mailing list
> Conkeror@...
> https://www.mozdev.org/mailman/listinfo/conkeror
_______________________________________________
Conkeror mailing list
Conkeror@...
https://www.mozdev.org/mailman/listinfo/conkeror

Re: how to change page encoding?

by John J. Foerch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> In fact now most webpages have correct charset specification, so a
> simple command: "set-page-encoding GB2312" is good enough:)
>
> The regexp-pattern method is very considerable but not very neccessary.
> Moreover, if someone really needs that feature, he/she can make an
> on-loading hook in rc-file.
>
> best
> lars
>

>From what I have learned so far, in order to force a charset, it is
necessary to reload the page, giving the charset as a parameter to the
underlying loadURI call.

This is why I think it is necessary to extend conkeror's interface to
loadURI (apply_load_spec) to accomplish this.

--
John Foerch

_______________________________________________
Conkeror mailing list
Conkeror@...
https://www.mozdev.org/mailman/listinfo/conkeror

Re: how to change page encoding?

by John J. Foerch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

  Conkeror now has a command called reload-with-charset.  The default
key binding is `C-x return r'.  It's very basic, but it's a good first
step.  Let me know if this works for the problem-pages you encountered.

--
John Foerch

_______________________________________________
Conkeror mailing list
Conkeror@...
https://www.mozdev.org/mailman/listinfo/conkeror