umlautUtf8ToInt/write_vba_cases.py
2022-04-22 18:38:32 +02:00

9 lines
233 B
Python

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