r12a / app-conversion Goto Github PK
View Code? Open in Web Editor NEWConvert between escape formats.
Home Page: https://r12a.github.io/app-conversion/
Convert between escape formats.
Home Page: https://r12a.github.io/app-conversion/
I find myself needing to convert between string/hex/bin a lot and needing to test if inputs are UTF8/UTF16/Etc...
I've gone to MANY different pages that offer free online conversion for this kind of stuff.
But I have not found a better designed page than this. And I think that really says something.
All the different formats.
I can copy and paste from whatever I need.
I can see what I'm getting in each section.
I can flip options on the fly.
This is a REALLY good tool!
You've added logically chosen options.
Everything is clearly labeled.
And the UI is both intuitive and feature packed while not being overwhelming.
Seriously, I love this page. I think it's fantastic.
Thank you for making great design decisions, great option choices, and being thorough without intimidating the user.
10/10 would suggest this to others.
I'll be using this again (and again and again).
Cheers!
Raised by @mumbleskates at r12a/r12a.github.io#15
For example: Putting "π¨ββ€οΈβπβπ¨" in the green box and hitting 'convert' results in incorrect output in the following boxes:
In all these outputs, the issue is similar: there is no space (zero width or otherwise) between the first and second characters in the output code.
How to reproduce:
Expected result:
UTF-8 sequence is converted successfully or error message about invalid UTF-8 sequence generated.
Actual result:
The Chrome tab crashes.
When I try the same steps in Microsoft Edge I get U+10FFFEU+10FCF9 as the result.
It is unclear to me whether this is a bug in Chrome or in app-conversion itself.
CSS identifiers can't begin with a digit or any ASCII character other than - _ a-z or A-Z, so those must be escaped. We could add a refinement to the CSS result box that allows you to generate escapes for identifiers, such as \31 23.
See https://www.w3.org/International/questions/qa-escapes#css_identifiers
From Mark Davis:
I expected the [Convert numbers as Hex code
points] to search the text for any hex numbers ([A-Z0-9]*), extract
them, and convert as code points. That is "<61, 915, 969B, 10394>" would
turn into "a ΰ€ ι π". What it does do is convert, but retain the
surrounding text: also useful. Maybe a check box for [ExtractβοΈ]? to
ignore the non-numbers
from Mark Davis:
I really like the [Separate]! I think it would be best as [Compact βοΈ]
and as a top-level check box. That would be very handy for outputing the
compact form of \x and \u, eg \x{61 9 62} instead of \x{61}\x{9}\x{62}.
I suggest the default be unchecked.
Generating the \u{... ... ...} form is somewhat complicated, and i don't think i'll have time to figure out how best to do it for this go around, but i'll bear it in mind for future updates.
Hi! What's the processing behind converting to UTF-8 code units?
I'm trying to accomplish this same thing, but not sure what the conversion process needs to be.
Any assistance is appreciated!
Thanks!
I could not find a license. I'd like to use your function convertCharStr2CSS
and ask if I can. Also, committing a license in the repo would be nice. Thanks in advance.
On Google Chrome, https://r12a.github.io/app-conversion/ (version 9) crashes when you ask it to convert high encode code points like emojis e.g. π½ (U+1F47D ). To reproduce, I
This use to work the last time I recall putting an emoji into this app (π₯ U+1F525 back in May 2017).
As a side note, I'm a huge fan of this app. I have been using it for several years now. Keep up the good work!
It would be great and very helpful if you would add latex conversion as well!
I use this converter to convert emoji codes. Really need additional converter into C-style escape sequences.
can you help me with the functions which can be used in PHP /Python for same purpose.
Thanks in advance.
Anshu
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.