Hi Jasen

what happens if you add this line at the very beginning of the script?

::rivet::headers type "text/html;charset=utf-8"

Be careful to add this before any data is sent to the output channel.

 -- Massimo


On Fri, Nov 5, 2021 at 6:37 PM Jasen Kim <[email protected]> wrote:

> Hi guys,
>
> I am having issues with special characters when passed through as form
> data.
> In my input form I submit "testemailö@gmail.com"
> The :rivet::load_response data returns "testemail\xc3\[email protected]"
>
> I've tried using [encoding convertfrom utf-8 {testemail\xc3\[email protected]}]
> with no success.
> Any idea how I can convert the utf-8 literal back to its original
> character?
>
> I've tried
> set teststr "testemail\xc3\[email protected]"
> puts [encoding convertfrom utf-8 $teststr]
> in its own tcl script and had this working but not in the Rivet
> environment.
>
>
> Thanks,
> Jasen
>

Reply via email to