# Unicode web Conversion

**URL:** <https://community.thunkable.com/t/unicode-web-conversion/1385131>\
**Category:** Questions about Thunkable X\
**Tags:** help, javascript\
**Created:** [July 8, 2021, 6:59am UTC](https://community.thunkable.com/t/unicode-web-conversion/1385131 "2021-07-08T06:59:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tony.ycy.program](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tony.ycy.program/32/100153_2.png) [@tony.ycy.program](https://community.thunkable.com/u/tony.ycy.program)\
**Post date:** [July 8, 2021, 6:59am UTC](https://community.thunkable.com/t/unicode-web-conversion/1385131/1 "2021-07-08T06:59:05Z")

</div>

Text \<\>Unicode use webviewer and JavaScript.  
Can anyone make?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [July 8, 2021, 1:37pm UTC](https://community.thunkable.com/t/unicode-web-conversion/1385131/2 "2021-07-08T13:37:08Z")

</div>

This is from Stackoverflow

```auto
let str = "このOTPを使用してQuikドライブにログインします。 このOTPを誰とも共有しないでください";

str = str.split("").map( char => addZeros( char.charCodeAt(0).toString(16) ) ).join("");

function addZeros(str){ return ("0000" + str).slice(-4) }

console.log( str );

```

It works very fine. You just need to change the str part to whatever you want.

---

<div class="post-metadata">

**Author:** ![tony.ycy.program](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tony.ycy.program/32/100153_2.png) [@tony.ycy.program](https://community.thunkable.com/u/tony.ycy.program)\
**Post date:** [July 8, 2021, 4:07pm UTC](https://community.thunkable.com/t/unicode-web-conversion/1385131/3 "2021-07-08T16:07:30Z")

</div>

How to use?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [July 8, 2021, 9:21pm UTC](https://community.thunkable.com/t/unicode-web-conversion/1385131/4 "2021-07-08T21:21:21Z")

</div>

Will create a demo for you.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [July 8, 2021, 9:57pm UTC](https://community.thunkable.com/t/unicode-web-conversion/1385131/5 "2021-07-08T21:57:44Z")

</div>

I created this sample project  
[https://x.thunkable.com/projectPage/60e772a59e53140011621667](https://x.thunkable.com/projectPage/60e772a59e53140011621667)

and used this file as an asset to test. You need to rename the file from txt to html.  
[ascii2unicode.txt](https://community.thunkable.com/uploads/short-url/9Rrd9Hdr5vYVXQ5vW7ewc8LbH6R.txt) (552 Bytes)

---

<div class="post-metadata">

**Author:** ![tony.ycy.program](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tony.ycy.program/32/100153_2.png) [@tony.ycy.program](https://community.thunkable.com/u/tony.ycy.program)\
**Post date:** [July 9, 2021, 1:00pm UTC](https://community.thunkable.com/t/unicode-web-conversion/1385131/6 "2021-07-09T13:00:10Z")

</div>

Is it possible to reverse the encoding?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [July 9, 2021, 1:19pm UTC](https://community.thunkable.com/t/unicode-web-conversion/1385131/7 "2021-07-09T13:19:08Z")

</div>

of course.

Now that you receive them as a long string of characters, you can manipulate them in thunkable if you want.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:19pm UTC](https://community.thunkable.com/t/unicode-web-conversion/1385131/8 "2024-11-08T13:19:53Z")

</div>


