Error when clipping raster in QGIS: “'ascii' codec can't encode character”?ASCII encoding error when...

How bad is a Computer Science course that doesn't teach Design Patterns?

Is there a way to pause a running process on Linux systems and resume later?

Insecure private-key encryption

Democratic Socialism vs Social Democracy

Is .NET Framework 3.5 still needed with a SQL Server 2017 installation to utilize Database Mail?

Homeostasis logic/math problem

Do we still track damage on indestructible creatures?

Was Claire Dearing blamed for any of Jurassic World's failings?

Crack the bank account's password!

Identical projects by students at two different colleges: still plagiarism?

Why is Shelob considered evil?

If I tried and failed to start my own business, how do I apply for a job without job experience?

XOR-free sets: Maximum density?

Rigorous justification for non-relativistic QM perturbation theory assumptions?

How do I avoid the "chosen hero" feeling?

Sensor logger for Raspberry Pi in a stratospheric probe

If angels and devils are the same species, why would their mortal offspring appear physically different?

How do I add a strong "onion flavor" to the biryani (in restaurant style)?

What does からか mean?

Renting a 2CV in France

"Starve to death" Vs. "Starve to the point of death"

Specific list manipulation

How do you get out of your own psychology to write characters?

Why might frozen potatoes require a hechsher?



Error when clipping raster in QGIS: “'ascii' codec can't encode character”?


ASCII encoding error when updating field content in SQL Server tableCommand line error and missing dependency in QGISViewshed analysis plugin fails with 'ascii' codec can't encode charactersErrors executing certain algorithms in QGIS Processing Toolbox?Clipping topo-data takes too much time and file become too bigQgis - GrassGis errorTrying to use “Pit Remove” tool gives out “'ascii' codec can't encode character" errorPython Error; 'Charmap codec can't encode character 'ufeff' in position 0'DEM File “not found” Error when running r.watershed with Processing Toolbox in QGIS 3.4.2 with GRASSHow to fix the geocode error: UnicodeEncodeError ascii codec can't encode character ufeff and xfc













3















I have done it many times (clipping a raster with a polygon layer or by extension) but today I got an error for the first time and I don't know how to solve it. I am always using the same type of raster layers. When running the clipping tool I got the following message:



gdal_translate -of GTiff -ot Byte -projwin 410282.185971 4694950.41162 410783.882475 4694524.96815 -co COMPRESS=DEFLATE -co PREDICTOR=1 -co ZLEVEL=6 -co TFW=YES "C:/Users/FERRAN ALA/Desktop/Justificació Fontanals/QGIS/Topo 1_5000/bt5mv20sd0f283077st1r031.sid" "C:/Users/FERRAN ALA/Desktop/Justificació Fontanals/QGIS/background/image.tif"


GDAL command output:




'ascii' codec can't encode character u'xf3' in position 201: ordinal not in range(128) See log for more details




Does anybody know what that is?










share|improve this question




















  • 1





    You should not use characters with accent mark (typical of catalan) and spaces in your paths. Probably, it is the source of your issues.

    – xunilk
    Jan 9 at 19:00











  • Please, see this link referred to unicode xf3 character: codetable.net/hex/f3

    – xunilk
    Jan 9 at 19:04











  • Hello, thank you for that information. I removed all accents and it worked perfectly. Thanks!

    – Ferran
    Jan 10 at 8:49
















3















I have done it many times (clipping a raster with a polygon layer or by extension) but today I got an error for the first time and I don't know how to solve it. I am always using the same type of raster layers. When running the clipping tool I got the following message:



gdal_translate -of GTiff -ot Byte -projwin 410282.185971 4694950.41162 410783.882475 4694524.96815 -co COMPRESS=DEFLATE -co PREDICTOR=1 -co ZLEVEL=6 -co TFW=YES "C:/Users/FERRAN ALA/Desktop/Justificació Fontanals/QGIS/Topo 1_5000/bt5mv20sd0f283077st1r031.sid" "C:/Users/FERRAN ALA/Desktop/Justificació Fontanals/QGIS/background/image.tif"


GDAL command output:




'ascii' codec can't encode character u'xf3' in position 201: ordinal not in range(128) See log for more details




Does anybody know what that is?










share|improve this question




















  • 1





    You should not use characters with accent mark (typical of catalan) and spaces in your paths. Probably, it is the source of your issues.

    – xunilk
    Jan 9 at 19:00











  • Please, see this link referred to unicode xf3 character: codetable.net/hex/f3

    – xunilk
    Jan 9 at 19:04











  • Hello, thank you for that information. I removed all accents and it worked perfectly. Thanks!

    – Ferran
    Jan 10 at 8:49














3












3








3


0






I have done it many times (clipping a raster with a polygon layer or by extension) but today I got an error for the first time and I don't know how to solve it. I am always using the same type of raster layers. When running the clipping tool I got the following message:



gdal_translate -of GTiff -ot Byte -projwin 410282.185971 4694950.41162 410783.882475 4694524.96815 -co COMPRESS=DEFLATE -co PREDICTOR=1 -co ZLEVEL=6 -co TFW=YES "C:/Users/FERRAN ALA/Desktop/Justificació Fontanals/QGIS/Topo 1_5000/bt5mv20sd0f283077st1r031.sid" "C:/Users/FERRAN ALA/Desktop/Justificació Fontanals/QGIS/background/image.tif"


GDAL command output:




'ascii' codec can't encode character u'xf3' in position 201: ordinal not in range(128) See log for more details




Does anybody know what that is?










share|improve this question
















I have done it many times (clipping a raster with a polygon layer or by extension) but today I got an error for the first time and I don't know how to solve it. I am always using the same type of raster layers. When running the clipping tool I got the following message:



gdal_translate -of GTiff -ot Byte -projwin 410282.185971 4694950.41162 410783.882475 4694524.96815 -co COMPRESS=DEFLATE -co PREDICTOR=1 -co ZLEVEL=6 -co TFW=YES "C:/Users/FERRAN ALA/Desktop/Justificació Fontanals/QGIS/Topo 1_5000/bt5mv20sd0f283077st1r031.sid" "C:/Users/FERRAN ALA/Desktop/Justificació Fontanals/QGIS/background/image.tif"


GDAL command output:




'ascii' codec can't encode character u'xf3' in position 201: ordinal not in range(128) See log for more details




Does anybody know what that is?







qgis gdal error ascii encoding






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 9 mins ago









Andre Silva

7,545113682




7,545113682










asked Jan 9 at 17:14









FerranFerran

161




161








  • 1





    You should not use characters with accent mark (typical of catalan) and spaces in your paths. Probably, it is the source of your issues.

    – xunilk
    Jan 9 at 19:00











  • Please, see this link referred to unicode xf3 character: codetable.net/hex/f3

    – xunilk
    Jan 9 at 19:04











  • Hello, thank you for that information. I removed all accents and it worked perfectly. Thanks!

    – Ferran
    Jan 10 at 8:49














  • 1





    You should not use characters with accent mark (typical of catalan) and spaces in your paths. Probably, it is the source of your issues.

    – xunilk
    Jan 9 at 19:00











  • Please, see this link referred to unicode xf3 character: codetable.net/hex/f3

    – xunilk
    Jan 9 at 19:04











  • Hello, thank you for that information. I removed all accents and it worked perfectly. Thanks!

    – Ferran
    Jan 10 at 8:49








1




1





You should not use characters with accent mark (typical of catalan) and spaces in your paths. Probably, it is the source of your issues.

– xunilk
Jan 9 at 19:00





You should not use characters with accent mark (typical of catalan) and spaces in your paths. Probably, it is the source of your issues.

– xunilk
Jan 9 at 19:00













Please, see this link referred to unicode xf3 character: codetable.net/hex/f3

– xunilk
Jan 9 at 19:04





Please, see this link referred to unicode xf3 character: codetable.net/hex/f3

– xunilk
Jan 9 at 19:04













Hello, thank you for that information. I removed all accents and it worked perfectly. Thanks!

– Ferran
Jan 10 at 8:49





Hello, thank you for that information. I removed all accents and it worked perfectly. Thanks!

– Ferran
Jan 10 at 8:49










1 Answer
1






active

oldest

votes


















0














User @xunilk nailed it: the error message is saying that the character xf3 (which is the ó from Justificació) could not be encoded (i.e. altered from unicode to a string).



As you already figured out, remove such type of characters (with accent marks) from file paths and file names (remove the spaces as well):



gdal_translate -of GTiff -ot Byte -projwin 410282.185971 4694950.41162 410783.882475 4694524.96815 -co COMPRESS=DEFLATE -co PREDICTOR=1 -co ZLEVEL=6 -co TFW=YES "C:/Users/FERRAN_ALA/Desktop/Justificacio_Fontanals/QGIS/Topo_1_5000/bt5mv20sd0f283077st1r031.sid" "C:/Users/FERRAN_ALA/Desktop/Justificaci0_Fontanals/QGIS/background/image.tif"





share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "79"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f308109%2ferror-when-clipping-raster-in-qgis-ascii-codec-cant-encode-character%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    User @xunilk nailed it: the error message is saying that the character xf3 (which is the ó from Justificació) could not be encoded (i.e. altered from unicode to a string).



    As you already figured out, remove such type of characters (with accent marks) from file paths and file names (remove the spaces as well):



    gdal_translate -of GTiff -ot Byte -projwin 410282.185971 4694950.41162 410783.882475 4694524.96815 -co COMPRESS=DEFLATE -co PREDICTOR=1 -co ZLEVEL=6 -co TFW=YES "C:/Users/FERRAN_ALA/Desktop/Justificacio_Fontanals/QGIS/Topo_1_5000/bt5mv20sd0f283077st1r031.sid" "C:/Users/FERRAN_ALA/Desktop/Justificaci0_Fontanals/QGIS/background/image.tif"





    share|improve this answer




























      0














      User @xunilk nailed it: the error message is saying that the character xf3 (which is the ó from Justificació) could not be encoded (i.e. altered from unicode to a string).



      As you already figured out, remove such type of characters (with accent marks) from file paths and file names (remove the spaces as well):



      gdal_translate -of GTiff -ot Byte -projwin 410282.185971 4694950.41162 410783.882475 4694524.96815 -co COMPRESS=DEFLATE -co PREDICTOR=1 -co ZLEVEL=6 -co TFW=YES "C:/Users/FERRAN_ALA/Desktop/Justificacio_Fontanals/QGIS/Topo_1_5000/bt5mv20sd0f283077st1r031.sid" "C:/Users/FERRAN_ALA/Desktop/Justificaci0_Fontanals/QGIS/background/image.tif"





      share|improve this answer


























        0












        0








        0







        User @xunilk nailed it: the error message is saying that the character xf3 (which is the ó from Justificació) could not be encoded (i.e. altered from unicode to a string).



        As you already figured out, remove such type of characters (with accent marks) from file paths and file names (remove the spaces as well):



        gdal_translate -of GTiff -ot Byte -projwin 410282.185971 4694950.41162 410783.882475 4694524.96815 -co COMPRESS=DEFLATE -co PREDICTOR=1 -co ZLEVEL=6 -co TFW=YES "C:/Users/FERRAN_ALA/Desktop/Justificacio_Fontanals/QGIS/Topo_1_5000/bt5mv20sd0f283077st1r031.sid" "C:/Users/FERRAN_ALA/Desktop/Justificaci0_Fontanals/QGIS/background/image.tif"





        share|improve this answer













        User @xunilk nailed it: the error message is saying that the character xf3 (which is the ó from Justificació) could not be encoded (i.e. altered from unicode to a string).



        As you already figured out, remove such type of characters (with accent marks) from file paths and file names (remove the spaces as well):



        gdal_translate -of GTiff -ot Byte -projwin 410282.185971 4694950.41162 410783.882475 4694524.96815 -co COMPRESS=DEFLATE -co PREDICTOR=1 -co ZLEVEL=6 -co TFW=YES "C:/Users/FERRAN_ALA/Desktop/Justificacio_Fontanals/QGIS/Topo_1_5000/bt5mv20sd0f283077st1r031.sid" "C:/Users/FERRAN_ALA/Desktop/Justificaci0_Fontanals/QGIS/background/image.tif"






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 13 mins ago









        Andre SilvaAndre Silva

        7,545113682




        7,545113682






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f308109%2ferror-when-clipping-raster-in-qgis-ascii-codec-cant-encode-character%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Щит и меч (фильм) Содержание Названия серий | Сюжет |...

            is 'sed' thread safeWhat should someone know about using Python scripts in the shell?Nexenta bash script uses...

            Meter-Bus Содержание Параметры шины | Стандартизация |...