human
default encoding on windows.
assistant
Here is a Python function to default encoding on windows
import sys

import re

def get_default_encoding():
    """
    Return the default encoding for the current platform.
    """
    if sys.platform == 'win32':
        return 'cp1252'
    return 'utf-8'

# Enter the string
string = "carnation"

# Calling the function
print((get_default_encoding()))

#Example Output
# utf-8

#Remember to inspect code for bugs.