How to set REST Module Attribute encoding to UTF-8?

남혁준 sawd1598 at gmail.com
Tue Jun 25 14:05:05 UTC 2024


Hello, I am using Rest module and there is no problem with functionality.

However, I am experiencing encoding issues.

Two reproduction scenarios can be presented.

1. When the data item of the Rest module is directly specified

: In this case, there is no problem. This is because the encoding process
does not appear to be taking place.


★ 2. When the data item of Rest Module is not specified ★

Several Attributes that can be transmitted (set as default) are included in
the Data item.

And the items that are decided to be transferred are processed as follows.

(19) rest: Encoding attribute "User-Name"
(19) rest: Encoding attribute "NAS-IP-Address"

...

As a result of the transfer, my Rest Server received data encoded in
ISO-8859-1 format.

My server needs to work with UTF-8. I could decompose the received data
into bytes in ISO-8859-1 format and then reassemble them into UTF-8, but I
think there is a better way.


How can I specify the encoding format of the data sent to the REST module?


More information about the Freeradius-Users mailing list