| Symbol Name | Fortune Hanzi |
| Unicode Version | 1.1 |
| Unicode | U+798F |
| Unicode block | |
| General category | Other Letter (Lo) |
| CSS Code | \798F |
| Hex Code | 0x798F |
| HTML Code | 福 |
| LaTeX | \CJKchar{798F} |
| Symbol | 福 |
| URL encode (UTF-8 percent) | %E7%A6%8F |
| Spoken / screen reader name | Fortune Hanzi |
| UTF-8 | E7 A6 8F |
| UTF-16 | 798F |
| UTF-32 | 0000798F |
1\documentclass{article}2\usepackage{pifont}3\CJKchar{798F}4\end{document}You can type the fortune hanzi symbol on most modern devices with the help of following methods:
Alt + 31119 on Windows (numeric keypad with Num Lock), or insert via Character Map / IME.
Edit → Emoji & Symbols, search "fortune hanzi", or use Unicode Hex Input with 798F.
Ctrl + Shift + U, type 798f, then Enter (layout-dependent), or use an IBus CJK table.
Paste from this page, use text replacement, or pick from a Japanese/Chinese keyboard.
Paste from this page or use a keyboard with CJK ideograph support.
1span.cjk-fortune::before { content: "\\798F"; font-family: "Hiragino Sans", "PingFang SC", "Noto Sans CJK SC", serif; }1<span>福</span>Fortune Hanzi symbol's representation in different programming languages can be found in the table below:
| Language | Representation |
|---|---|
| JavaScript / TypeScript | '\u798F' or String.fromCodePoint(31119) |
| Python | '\N{CJK UNIFIED IDEOGRAPH-798F}' or chr(31119) |
| Rust | '\u{798F}' |
| C / C++ | UTF-8 source or wchar_t with U+798F |
| Go | string(rune(0x798F)) |
| Ruby | "\u{798F}" |