Python Forum
macron on top of uppercase letters
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
macron on top of uppercase letters
#3
I think it depends on the encoding the OS uses. From the Unicode HOWTO https://docs.python.org/3/howto/unicode.html
Quote:Python supports writing source code in UTF-8 by default, but you can use almost any encoding if you declare the encoding being used. This is done by including a special comment as either the first or second line of the source file:

#!/usr/bin/env python
# -*- coding: latin-1 -*-

u = 'abcdé'
print(ord(u[-1]))
Reply


Messages In This Thread
RE: macron on top of uppercase letters - by woooee - Aug-21-2019, 03:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  AttributeError: module 'string' has no attribute 'uppercase' Anldra12 10 10,597 Apr-23-2021, 05:30 PM
Last Post: ibreeden
  Python uppercase conversion conditions Jaypeng 7 3,135 Apr-29-2020, 11:24 AM
Last Post: jefsummers
  'True' if 'string' has at least one uppercase letter ClassicalSoul 1 3,425 Feb-28-2019, 12:08 PM
Last Post: buran
  check if value of passed variable has uppercase characters in it. wfsteadman 3 3,340 Sep-01-2017, 05:52 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020