Ask Your Question
0

Unicode decimal codes [CLOSED]

asked 2020-01-24 15:41:02 +0200

deniscampbell gravatar image

updated 2020-02-22 18:13:37 +0200

Libre Office Writer Version: 6.3.3.2 (x64). Windows 10. PC with English UK keyboard and number pad. Trying to insert special character using decimal code, eg 8776, shown as ≈ in special character table. Inserting it using the table works ok, as does hex 2248 (+Altx).

Typing Alt + 8776 on the number keyboard just gives H. Num Lock on or off, no difference.

The ASCII codes (up to 255) are as shown in the character table, as long as you include a leading 0.

What is going on here?

edit retag flag offensive close merge delete

Comments

And what should be going?

Just a hint: searching this forum won't hurt.

gabix gravatar imagegabix ( 2020-01-24 16:08:53 +0200 )edit

1 Answer

Sort by » oldest newest most voted
3

answered 2020-01-24 16:37:06 +0200

ajlittoz gravatar image

updated 2020-01-24 17:52:50 +0200

I know Windows has a long tradition of allowing to enter unusual character with Alt and numeric keys, dating back to the "code pages" era, causing many compatibility problems when crossing a page code country border.

Code pages where limited to 256 characters (one byte worth) and I suppose the Alt entry method is limited to 8 bits: (8776)10 = U+2248 ALMOST EQUAL TO, when truncated to the lower 8 bits gives U+0048 LATIN CAPITAL LETTER H, q.e.d.

This is a Windows issue, not LO Writer.

Now we're in Unicode era. In the standard, characters are shown as U+1234 where 1234 are hexadecimal digits. Consequently, why would you convert this number to decimal (with the risk of miscalculating) when you can blindly copy the hexadecimal code and Alt X?

To show the community your question has been answered, click the ✓ next to the correct answer, and "upvote" by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

In case you need clarification, edit your question (not an answer) or comment the relevant answer.

edit flag offensive delete link more

Comments

I guess so... Thanks

deniscampbell gravatar imagedeniscampbell ( 2020-02-22 18:02:22 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-01-24 15:41:02 +0200

Seen: 89 times

Last updated: Feb 22