umlautUtf8ToInt/write_vba_cases.py

10 lines
233 B
Python
Raw Permalink Normal View History

2022-04-22 18:29:16 +02:00
#!\bin\env python3
umlauts='äöüÄÖÜàéè\' ÉéÀàÈèÙùÂâÊêÎîÔôÛûÇçËëÏïÜüÆæ'
for c in set(umlauts):
hex=c.encode('utf8').hex().upper()
print(f"Case \"{c}\"")
print(f"umlautUtf8ToInt = &H{hex}")