Moderators: phlip, Larson, Moderators General, Prelates
eligitine wrote:For me, that usually has to do with fonts. Most fonts can't handle the higher Unicode characters.
Eebster the Great wrote:The tool seems to be working, except when I enter characters, it doesn't print the right one. I get two squares instead of math bold, for instance. But when I copy and paste the relevant characters, they show up properly.
Xanthir wrote:Eebster the Great wrote:The tool seems to be working, except when I enter characters, it doesn't print the right one. I get two squares instead of math bold, for instance. But when I copy and paste the relevant characters, they show up properly.
This implies that someone in the chain between the input method and whatever you're pasting into doesn't understand the astral planes, assumes that those characters (which are almost certainly encoded in UTF-16 using surrogates, as that's what most OSes use) are invalid, and replaces them with the replacement character U+FFFD.
eligitine wrote:I was reading up, and it appears that with most major browers, it works correctly (if you have a font that supports it), but if you type it on a page that is is using a charset that doesn't support it, it will not be transmitted to the website correctly.
eligitine wrote:Notepad supports very little unicode with its loaded fonts.
#include <stdio.h>
int main()
{ struct { unsigned a:3, b:3, c:2; } n = {0};
do do printf("%hhu\n", *&n);
while(!(n.a-- && !++n.b));
while(++n.c);
return 0; } Xanthir wrote:I prefer the simplest text editor: data:text/html;charset=utf-8,<pre contenteditable>. Just paste that into the address bar, and you get all the goodness of browsers handling unicode pretty well.
EvanED wrote:That's hilarious, but everyone knows that the simplest text editor is cat.
#include <stdio.h>
int main()
{ struct { unsigned a:3, b:3, c:2; } n = {0};
do do printf("%hhu\n", *&n);
while(!(n.a-- && !++n.b));
while(++n.c);
return 0; } Xanthir wrote:I prefer the simplest text editor: data:text/html;charset=utf-8,<pre contenteditable>. Just paste that into the address bar, and you get all the goodness of browsers handling unicode pretty well.
Eebster the Great wrote:Xanthir wrote:I prefer the simplest text editor: data:text/html;charset=utf-8,<pre contenteditable>. Just paste that into the address bar, and you get all the goodness of browsers handling unicode pretty well.
I don't get it.
Jplus wrote:Wait. Are there more html tags to which one may add the contenteditable property?
http://www.w3schools.com/html5/html5_ref_globalattributes.asp wrote:The global attributes below can be used on any HTML5 element.
#include <stdio.h>
int main()
{ struct { unsigned a:3, b:3, c:2; } n = {0};
do do printf("%hhu\n", *&n);
while(!(n.a-- && !++n.b));
while(++n.c);
return 0; } phlip wrote:Try giving it some starting text, like:
data:text/html,<pre contenteditable>click here
Incidentally, I use data URIs all the time to get unicode text... I'll often go to data:text/html,– or data:text/html,&%23x1234; or something, and copy/paste the resulting character...
Users browsing this forum: No registered users and 5 guests