Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3855782
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:49:45+00:00 2026-05-19T17:49:45+00:00

I want to assign a string of characters to a variable but it says

  • 0

I want to assign a string of characters to a variable but it says

: there isn't a "code to show.

I have a string that i want to assign to a variable

d="stunning:/ËstÊnɪÅ/"
Unsupported characters in input

or

word="stuning:/ˈstraɪkɪŋ/"
Unsupported characters in input

so basically the interpreter doesn’t allow me to assign it to a variable, so I can’t code on it.

How can I extract, delete those characters from the text, or is there anything to do , so python will support this kind of input.

I’ve tried to converted it into others format like ansi, utf, etc. but without success.

P.S.: I’m using python 2.7

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T17:49:46+00:00Added an answer on May 19, 2026 at 5:49 pm

    Set the source file encoding accordingly to the actual encoding of the file, so that the interpreter knows how to parse it.

    For instance, if you use UTF-8, just add this string to the header of the file:

        # -*- coding: utf8 -*-
    

    It must be the first or the second line of the file. See PEP 0263: Defining Python Source Code Encodings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to assign an HTML string to a JavaScript variable but it gives
I have a string& parameter, and i want to assign it to string parameter.
I want to assign a string like: 22 33 to a variable like char*av[129]
I want to assign a string value to a variable in the DataGridView LostFocus
Lets say that we have a specific string: string a[]={ab,cd,ef} and we want a
I want to assign a class attribute via a string object - but how?
Imagine we have 5 string variables and we want to assign Foo to them
I have a placeholder string, a space character, in an NSTextView that I want
I have a fixed length character array I want to assign to a string.
I want to assign string from command line. But I got segmentation fault. why?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.