You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[TextEncoder](https://encoding.spec.whatwg.org/#interface-textencoder) does the reverse thing -- converts a string into bytes.
57
+
شی رمزگذار متن([TextEncoder](https://encoding.spec.whatwg.org/#interface-textencoder)) برعکس کار را انجام میدهد -- یک رشته را به بایتها تبدیل میکند.
58
58
59
-
The syntax is:
59
+
سینتکس آن به صورت زیر است:
60
60
61
61
```js
62
62
let encoder =newTextEncoder();
63
63
```
64
64
65
-
The only encoding it supports is "utf-8".
65
+
تنها رمزگذاریای که رمزگذار متن از آن پشتیبانی میکند "utf-8" میباشد.
66
66
67
-
It has two methods:
68
-
-**`encode(str)`** -- returns `Uint8Array`from a string.
69
-
-**`encodeInto(str, destination)`** -- encodes`str`into `destination`that must be `Uint8Array`.
67
+
رمزگذار متن دو متد دارد:
68
+
-متد **`encode(str)`** -- از یک رشته، `Uint8Array`را برمیگرداند.
69
+
-متد **`encodeInto(str, destination)`** -- رشتهی`str`را درون `destination`که باید `Uint8Array` باشد، رمزگذاری میکند.
0 commit comments