LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-13-2023, 11:48 PM   #1
john@ackley.net
LQ Newbie
 
Registered: Mar 2005
Location: Virgin Islands
Distribution: Red Hat 9.0
Posts: 13

Rep: Reputation: 0
keyboad emits UTF-8 code (0xCB 0x86) for upper case 6 rather than ASCII (0x5E)


keyboard emits UTF-8 code (0xCB 0x86) for upper case 6 rather than ASCII (0x5E)

all other keys emit ASCII codes as expected!

this causes problems when writing code

how to fix it?
how to see mapping?

Mac Pro Intel Ventura 13.1
apple wireless US keyboard
 
Old 01-14-2023, 11:39 AM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,147

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
The keyboard is not emitting ASCII or Unicode, but a scan-code that the keyboard driver translates. Since everything else works, you obviously have the Apple keyboard recognised. The driver should live at

/usr/share/X11/xkb/symbols/macintosh_vndr/us

and it should contain the line

key <AE06> {[ 6, asciicircum ]};

If it doesn't have "asciicircum" at that point, correct it.
 
Old 12-07-2023, 02:32 AM   #3
hueljannie
LQ Newbie
 
Registered: Dec 2023
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by john@ackley.net View Post
keyboard emits UTF-8 code (0xCB 0x86) for upper case 6 rather than ASCII (0x5E)

all other keys emit ASCII codes as expected!

this causes problems when writing code

how to fix it?
how to see mapping? wordle today

Mac Pro Intel Ventura 13.1
apple wireless US keyboard
Instead of standard ASCII or Unicode characters, the keyboard is actually transmitting a scan-code, which the driver uses to decipher. Everything else being equal, it's clear that the Apple keyboard is recognized. It is recommended that the driver resides at

Last edited by hueljannie; 12-11-2023 at 01:34 AM.
 
Old 12-07-2023, 10:08 AM   #4
jeniy
LQ Newbie
 
Registered: Dec 2023
Location: United States
Distribution: window, windows xp home, windows 98, white hat
Posts: 3

Rep: Reputation: 0
Change input source to "US Extended".
Use Karabiner-Elements to map "6" to "Circumflex".
Use Keyboard Viewer or Karabiner-Elements to see current mapping.

Last edited by Timothy Miller; 12-10-2023 at 12:12 PM. Reason: Remove spam links.
 
Old 12-07-2023, 10:19 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,437

Rep: Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340Reputation: 2340
You can also edit your keyboard file manually. The defaults are in /usr/share/X11/xkb/symbols/, but you can overwrite them with files in /etc/X11/xkb/symbols. create if necessary.
 
  


Reply

Tags
keyboard, mapping, utf-8



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Bash: Checking for lower case and upper case letters in a string fatalerror0x00 Programming 1 12-09-2012 02:17 AM
mkisofs -iso-level 1 converts to lower case instead of upper case. stf92 Slackware 3 10-29-2010 12:32 AM
renaming directories from upper case to lower case, help!! linux_teller Linux - Newbie 3 03-07-2008 05:15 AM
Why are all my upper case files being shown as lower case?? [Kernel 2.6.9-1.667 FC3] t3gah Fedora 4 03-11-2005 04:09 PM
Lower case to upper case letter sudhasmyle Programming 1 12-03-2004 04:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration