-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Graffiti in hex #8168
Comments
Hi @Dimasin Please ask the question on our Discord server: https://discord.gg/YMVYzv6 Thank you! |
In short, you can not input hex and expect it to convert to ascii (e.g. Welcome to the New Beginning). Is there a particular reason that you would like to do this? |
Graffiti uses UTF-8 characters, such as 0xf09f90a0. Using the copy / paste method may not always guarantee an accurate result. A string in hex format will always be displayed the same way. |
It's a reasonable request. Can you update the description to something like "Add support for Graffiti in hex" ? |
It isn't entirely clear to me what the request is here. Do you have examples of hex graffiti being displayed in different ways, or examples of hex strings which are not properly translated into graffiti? |
It isn't entirely clear to me what you want me to do. I've already made my case. This is, after all, just a suggestion. |
@d00medman From what I understand, @Dimasin wants to provide hex data as grafitti rather than a UTF-8 string. So instead of providing the validator
we can instead use
Then the validator will internally convert the hex data to a utf-8 compatible string and add that to any future proposed blocks. |
We could support functionality like if "0x" == graffiti[0:2] {
graffiti = convertHex(graffiti[2:])
} This would consider any string that starts with the |
Except it's quite common in this environment to have avatars of the form 0xpotuz and this will force them to encode the string. Perhaps something like |
@potuz That would be acceptable and solve the problem at hand, with minimal burden on the user. Thanks for that suggestion! |
I can uses graffiti string in hex format? E.g:
0xf09f90a057656c636f6d6520746f20746865204e657720426567696e6e696e67
The text was updated successfully, but these errors were encountered: