Ali
Ali

Reputation: 2042

Join UTF-8 strings

I want to join some UTF-8 strings together, Any ideas?

e.g:

Input: س + ل + ا + م

Output: سلام

Upvotes: 1

Views: 254

Answers (1)

Steven
Steven

Reputation: 303

In Javascript you can do var output = 'س + ل + ا + م'.split(' + ').join('');. Just replace what is separating the characters in the split function.

Upvotes: 5

Related Questions