Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. kubuntu kate and utf-8 encoding

kubuntu kate and utf-8 encoding

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
helppythonlinuxquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Granny2007
    wrote on last edited by
    #1

    i copied some code off the net and when saving the file in kate i get this message: You are trying to save a python file as non ascii, without specifying a correct source encoding line for encoding utf-8. Say what? Like i'm new to linux but i'm not new to computers and i have no idea what this means. options are insert coding or save nevertheless. The problem is i can;t alter the code the compiler says syntax error every time. Is that why? the utf-8 encoding?

    M 1 Reply Last reply
    0
    • G Granny2007

      i copied some code off the net and when saving the file in kate i get this message: You are trying to save a python file as non ascii, without specifying a correct source encoding line for encoding utf-8. Say what? Like i'm new to linux but i'm not new to computers and i have no idea what this means. options are insert coding or save nevertheless. The problem is i can;t alter the code the compiler says syntax error every time. Is that why? the utf-8 encoding?

      M Offline
      M Offline
      Moreno Airoldi
      wrote on last edited by
      #2

      The file you are trying to save contains non-ASCII data. Call it "binary" data if it's clearer. That's why Kate asks you about the encoding and the compiler fails. You should hunt the non-ASCII data down and remove it, then you'll be ok. :)

      2+2=5 for very large amounts of 2 (always loved that one hehe!)

      S 1 Reply Last reply
      0
      • M Moreno Airoldi

        The file you are trying to save contains non-ASCII data. Call it "binary" data if it's clearer. That's why Kate asks you about the encoding and the compiler fails. You should hunt the non-ASCII data down and remove it, then you'll be ok. :)

        2+2=5 for very large amounts of 2 (always loved that one hehe!)

        S Offline
        S Offline
        Sebastian Schneider
        wrote on last edited by
        #3

        Happens with " all the time, because most word-processors feel they need to change those...

        Cheers, Sebastian -- "If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton

        M 1 Reply Last reply
        0
        • S Sebastian Schneider

          Happens with " all the time, because most word-processors feel they need to change those...

          Cheers, Sebastian -- "If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton

          M Offline
          M Offline
          Moreno Airoldi
          wrote on last edited by
          #4

          Owww nasty word procs hehe! :)

          2+2=5 for very large amounts of 2 (always loved that one hehe!)

          I 1 Reply Last reply
          0
          • M Moreno Airoldi

            Owww nasty word procs hehe! :)

            2+2=5 for very large amounts of 2 (always loved that one hehe!)

            I Offline
            I Offline
            Indrora
            wrote on last edited by
            #5

            I thought Kate was a well behaved plaintext editor? Meh, I've used Komodo Edit which can handle such odd things as Shift-JIS if I want it to...

            ---- Morgan Gangwere Lead programmer, Unknown Software "Pinky, are you thinking what im thinking?" "I Dunno brain, how many licks DOES it take to get to the tootsie roll center of a tootsie pop?" "You want me to calculate that? or should we take over the world?" "ooh! OooooOOOooH! lets find out!"

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups