ESPTOUCH Discussion: SSID encoding related

afunx
Posts: 19
Joined: Fri Jan 09, 2015 11:04 am

ESPTOUCH Discussion: SSID encoding related

Postby afunx » Fri Apr 24, 2015 5:32 pm

It is a hard choice.

For different AP has different encoding charset.
For Android device, some product use UTF-8, some product use GBK, and etc. The most unbelievable thing occur to me is that one android phone support both UTF-8 and GBK when scan AP's SSID.

For IOS, the iphone use UTF-8 charset.

So we use UTF-8 as the default charset.

If it lead to configure fail all the time, please try another charset.
I think that we could hint the user: "We only support SSID is ASCII" if the configured AP's SSID isn't ASCII.
It is hard to decide, so I let ESPTOUCH v0.2.1 could be set the encoding charset.

For Android:
In ByteUtil.java: public static final String ESPTOUCH_ENCODING_CHARSET = "UTF-8";

For IOS:
In ESP_ByteUtil.h: #define ESPTOUCH_NSStringEncoding NSUTF8StringEncoding

I don't think it is a wise solution to let the user choose the encoding charset. What's your opinion?
Please write down your view, and let us make ESPTOUCH better for both of developers and users.

milesstone
Posts: 60
Joined: Mon Apr 26, 2021 4:50 pm

Re: ESPTOUCH Discussion: SSID encoding related

Postby milesstone » Thu Sep 30, 2021 9:30 pm

afunx wrote:It is a hard choice.

For different AP has different encoding charset.
For Android device, some product use UTF-8, some product use GBK, and etc. The most unbelievable thing occur to me is that one android phone support gbwhatsapp Apk both UTF-8 and GBK when scan AP's SSID.

For IOS, the iphone use UTF-8 charset.

So we use UTF-8 as the default charset.

If it lead to configure fail all the time, please try another charset.
I think that we could hint the user: "We only support SSID is ASCII" if the configured AP's SSID isn't ASCII.
It is hard to decide, so I let ESPTOUCH v0.2.1 could be set the encoding charset.

For Android:
In ByteUtil.java: public static final String ESPTOUCH_ENCODING_CHARSET = "UTF-8";

For IOS:
In ESP_ByteUtil.h: #define ESPTOUCH_NSStringEncoding NSUTF8StringEncoding

I don't think it is a wise solution to let the user choose the encoding charset. What's your opinion?
Please write down your view, and let us make ESPTOUCH better for both of developers and users.

hopefully yes :-). it's shipped with some code inside. It can be set in access point mode or client mode. but the problem is even before powering the ESP. Why does smartconfig tell me "unknow SSID" like it cannot detect the current SSID I'm connected to. Here (https://www.youtube.com/watch?v=0mM7Jes7uRY) someone is doing exactly what I'm trying to do, with the same board, except that SmartConfig can correctly detect his own WiFi.

Nielson
Posts: 55
Joined: Wed Dec 09, 2020 4:15 pm

Re: ESPTOUCH Discussion: SSID encoding related

Postby Nielson » Sat Oct 02, 2021 8:13 pm

milesstone wrote:
afunx wrote:It is a hard choice.

For different AP has different encoding charset.
For Android device, some product use UTF-8, some product use GBK, and etc. The most unbelievable thing occur to me is that one android phone support gbwhatsapp Apk both UTF-8 and GBK when scan AP's SSID.

For IOS, the iphone use UTF-8 charset.

So we use UTF-8 as the default charset.

If it lead to configure fail all the time, please try another charset.
I think that we could hint the user: "We only support SSID is ASCII" if the configured AP's SSID isn't ASCII.
It is hard to decide, so I let ESPTOUCH v0.2.1 could be set the encoding charset.

For Android:
In ByteUtil.java: public static final String ESPTOUCH_ENCODING_CHARSET = "UTF-8";

For IOS:
In ESP_ByteUtil.h: #define ESPTOUCH_NSStringEncoding NSUTF8StringEncoding

I don't think it is a wise solution to let the user choose the encoding charset. What's your opinion?
Please write down your view, and let us make ESPTOUCH better for both of developers and users.

hopefully yes :-). it's shipped with some code inside. It can be set in access point mode or client mode. but the problem is even before powering the ESP. Why does smartconfig tell me "unknow SSID" like it cannot detect the current SSID I'm connected to. Here (https://www.youtube.com/watch?v=0mM7Jes7uRY) someone is doing exactly what I'm trying to do, with the same board, except that SmartConfig can correctly detect his own WiFi.

Well thank you so much for sharing this info which is really helpful for me which got solved my issue.

miya12
Posts: 1
Joined: Fri Nov 12, 2021 3:03 pm

Re: ESPTOUCH Discussion: SSID encoding related

Postby miya12 » Fri Nov 12, 2021 3:05 pm

Indeed Sir, it will never be a wise solution to let the user choose the encoding charset. I am totally agreed. But maybe in the near future, it can change. whatsapp mod

Who is online

Users browsing this forum: No registered users and 3 guests