Re: [code] ΄πΈ΄: [code] ΄πΈ΄: [code] [textadept] Could you please give me advice to configure encoding menu correctly?

From: Mitchell <m.att.foicica.com>
Date: Mon, 31 Jul 2017 00:12:56 -0400 (EDT)

Hi Yuki,

On Sat, 29 Jul 2017, Outlook Yuki wrote:

> Hi Mitchel
>
> I think the problem is that `io.open_file()` always try to auto detect encoding and user doesn't have any chance to select a apecific encoding by himself for the file.
> The solution which I think is to add encoding as argument to `io.open_file()`, and `io.open_file()` load the file according given encoding, or try to auto detect the encoding when null is given as encoding.
> If `io.open_file()` behive like above, user has a chance to force select encoding.

Thank you for the suggestion. I think this is a good idea and will look into adding it.

> Additionally, it's also better to add encoding option(including "auto detect" option) to file open dialog box.

Since Textadept utilizes GTK's file dialog, and this option does not exist, what you suggest is not possible at the moment.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Mon 31 Jul 2017 - 00:12:56 EDT

This archive was generated by hypermail 2.2.0 : Mon 31 Jul 2017 - 06:49:43 EDT