I need this to be used as a delimiter,
has anyone known about this statistics?
I need this to be used as a delimiter,
has anyone known about this statistics?
I'm sure there are tons of strange unicode characters that don't get used much, but that's probably not what you're looking for.
Why do you want something "rare" for a delimiter? How will it be used?
Pick any character, then pick a mechanism to escape that character to handle the case where the user wants to type it. For example, in comma delimited files the comma is the separator:
1,2,fred,john
Unless the data itself contains a comma, then you quote it:
1,2,"Bloggs, Fred",john
And if you need use a quote:
1,2,"Bloggs, Fred","Jean-Luc \"Make it so\" Picard"
I don't think it matters what character you use, you shouldn't just hope that no-one will type your delimiter. Use a comma and handle the users adding their own commas.
You could prefix whatever data you have on the web with the length.. that's how HTTP-Chunked encoding sends things across the web.
In such cases, I like the use the vertical bar | character.
You sound like you're trying to convert a list of strings into a single string in such a manner that you can later turn it back into a list of strings.
There are several traditional approaches to this, most of them already mentioned in this thread:
Greetings,Hey,Hello\,World,Hello \\ Backslash
» contains four elements, using ,
as the delimiter and \
as the escape character. (The last element has one backslash originally)
,
as your delimiter, and decide to represent ,
as «\1
» and \
as «\2
», you could write the last example as: «Greetings,Hey,Hello\1World,Hello \2 Backslash
»