Recent

Author Topic: [SOLVED] UTF8 Keyboard entry  (Read 2102 times)

Richard Marriott

  • New Member
  • *
  • Posts: 14
[SOLVED] UTF8 Keyboard entry
« on: July 16, 2025, 05:22:23 am »
Hi
I am using Lazarus 3.4 on Linux Mint 20.3.
I set up a form with a DBGrid, datasource, and TBufDataset with an ftString field.
I can enter any unicode character into the ftString field by holding down Ctrl-Shift, typeing 'Uxxxxxx' (without the quotes and where the x are unicode numbers) and then releasing Ctrl-Shift.
The unicode character appears in the DBGrid control. So all good,

When I switch to my Windows 10 machine and try the same thing it doesn't work.
Is there a different combination of keys for Windows?
« Last Edit: July 19, 2025, 05:19:03 am by Richard Marriott »

paweld

  • Hero Member
  • *****
  • Posts: 1677
Re: UTF8 Keyboard entry
« Reply #1 on: July 16, 2025, 05:44:45 am »
Quote
1. Press and hold Alt,
2. type + (on the numeric keypad),
3. now type in the hexadecimal codepoint sequence: 1, F, 6, 0, 0,
4. and finally release Alt.
https://unicode-explorer.com/articles/how-to-type-unicode-characters-in-windows
Best regards / Pozdrawiam
paweld

Thaddy

  • Hero Member
  • *****
  • Posts: 19424
  • Glad to be alive.
Re: UTF8 Keyboard entry
« Reply #2 on: July 16, 2025, 06:17:25 am »
Although Paweld's suggestion is Windows, that is also applicable to Linux Mint et all. As per your question.
Any "programmer" that knows only one programming language is not a programmer

Richard Marriott

  • New Member
  • *
  • Posts: 14
Re: UTF8 Keyboard entry
« Reply #3 on: July 19, 2025, 05:18:40 am »
Thanks for the help. Works fine now.

Richard Marriott

  • New Member
  • *
  • Posts: 14
Re: [SOLVED] UTF8 Keyboard entry
« Reply #4 on: July 19, 2025, 07:05:39 am »
Sorry, jumped the gun a bit. I have now had time to play a bit more:

In Windows 10 (my rig) and Lazarus 3.4 The Alt and + approach works fine BUT
      1. I had to add the EnableHexNumpad entry to the Registry
      2. It only works with up to 4 hex digits. See [url][https://en.wikipedia.org/wiki/Unicode_input#In_Microsoft_Windows/url]
You can use either the main keyboard or the numeric pad to enter the code.

In Linux Mint and Lazarus 4.0 I could not get this to work so have stayed with the Ctrl-Shift method.

 

TinyPortal © 2005-2018