How to Type ģ (G with cedilla) on HTML
Need ģ on HTML for a name, an address or a word in another language? You do not have to copy it from a website every time. The fastest method is ģ, and there are a few backups below for when that one is not available.
ģ on HTML: ģ
Ģ on HTML: Ģ
Or copy it:
Method 1: Codes for web pages
| Format | Code for ģ |
|---|---|
| Decimal entity | ģ |
| Hex entity | ģ |
| CSS content | content: "\0123"; |
| JavaScript | "\u0123" |
| URL encoded | %C4%A3 |
| UTF-8 bytes | C4 A3 |
Method 2: Type it directly with UTF-8
If your page starts with <meta charset="utf-8"> and the file is saved as UTF-8, you can paste ģ straight into the HTML. Entities are only needed when your editor or database cannot store the character.
Method 3: Watch for normalization
ģ can also be written as g plus a combining mark. Both look the same but compare as different strings. In JavaScript, call str.normalize("NFC") before comparing or searching.
How to type the capital Ģ
The uppercase form works the same way with Shift added where a letter is typed.
Codes for web pages
| Format | Code for Ģ |
|---|---|
| Decimal entity | Ģ |
| Hex entity | Ģ |
| CSS content | content: "\0122"; |
| JavaScript | "\u0122" |
| URL encoded | %C4%A2 |
| UTF-8 bytes | C4 A2 |
Type it directly with UTF-8
If your page starts with <meta charset="utf-8"> and the file is saved as UTF-8, you can paste Ģ straight into the HTML. Entities are only needed when your editor or database cannot store the character.
About the letter ģ
ģ is Unicode U+0123, named LATIN SMALL LETTER G WITH CEDILLA. It is used in Latvian. A small hook under a letter. ç gives a soft s sound in French, Portuguese, Catalan, Turkish and Albanian; Turkish also uses ş, and Latvian uses ģ, ķ, ļ, ņ. See the ģ character page for every code and shortcut.
Troubleshooting
- If you see à and other symbols, the file is UTF-8 but the browser reads it as Windows-1252. Add the meta charset tag.
- Named entities are case sensitive: É and é are different letters.
- In XML and XHTML only five named entities exist, so use numeric codes there.
Frequently asked questions
What is the shortcut for ģ on HTML?
ģ.
Can I just copy and paste ģ?
Yes. Click the copy button above, then paste with Ctrl+V on Windows and Chromebook, Cmd+V on a Mac, or touch and hold and choose Paste on a phone.
What is the Unicode code for ģ?
U+0123. In HTML it is ģ.
Related guides
- How to Type ģ (G with cedilla) on Windows
- How to Type ģ (G with cedilla) on Mac
- How to Type ģ (G with cedilla) on iPhone
- How to Type ģ (G with cedilla) on Android
- How to Type ģ (G with cedilla) on Microsoft Word
- How to Type ģ (G with cedilla) on Google Docs
- How to Type ğ (G with breve) on HTML
- How to Type ġ (G with dot above) on HTML
- How to Type ĥ (H with circumflex) on HTML
- How to Type ħ (H with stroke) on HTML