-
Notifications
You must be signed in to change notification settings - Fork 0
/
text_encoder.html
45 lines (42 loc) · 1.26 KB
/
text_encoder.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Text Encoder/Decoder</title>
<style>
body {
font-family: Arial, sans-serif;
}
</style>
</head>
<body>
<a href=".">Tools</a><br><br>
<h2>Text Encoder/Decoder</h2>
<div>
<label for="encoding_select">Select Encoding:</label>
<select id="encoding_select">
<option value="base64">Base64</option>
<option value="utf-8">UTF-8</option>
<!--
<option value="utf-16">UTF-16</option>
<option value="shift_jis">Shift_JIS</option>
-->
</select>
</div>
<br>
<div>
<h3>Encode</h3>
<textarea id="text_input" rows="5" cols="50" placeholder="Enter text to encode"></textarea><br>
<button onclick="encodeText()">Encode</button>
</div>
<br>
<div>
<h3>Decode</h3>
<textarea id="result_output" rows="5" cols="50" placeholder="Encoded text will appear here"></textarea>
</div>
<button onclick="decodeText()">Decode</button>
<script src="./text_encoder.js"></script>
UTF-16やShift-Jisのライブラリないですか
</body>
</html>