Sapling tree gen error when objects have åäö in the name #51157
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#51157
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Windows 10 Home (Swedish language)
GTX 1070
Blender Version
Broken: 2.78c
Worked: 2.77a (on windows 7)
Short description of error
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x85 in position 3: invalid start byte
Exact steps for others to reproduce the error
Start blender. Rename default cube to Låda (any name with lowercase åäö will do). User preferences->Addons-> Add Curve: Sapling Tree Gen.
Shift-A->Curve->Sapling Tree Gen.
blender_sapling_error.blend
Changed status to: 'Open'
Added subscriber: @BlenderAmateur
I was able to replicate this, but inconsistently. Can anyone confirm if this is a blender issue or something addons need to handle themselves. If it's the addon then how do I fix it?, because I do not know what's causing this.
Added subscriber: @mont29
Added subscriber: @bliblubli
@Abpy Blender and Python both can handle UTF-8 correctly. But maybe see https://developer.blender.org/T50926, because python on windows by default doesn't use UTF-8 encoding everywhere.
Added subscriber: @BrendonMurphy
hi, I was under the impression that py does not handle special text characters.
possibly we could add the unicode block to the addon?
https://wiki.blender.org/index.php/Dev:Doc/Code_Style says to avoid special characters
Added subscriber: @Blendify
@BrendonMurphy that is in the code, not as a user.
@Blendify, I'll seek clarify adding priority normal,
I have a workaround that uses base64 to pass the string through the addon. It lets you choose the objects but still doesn't show the correct object name in the menu.
hi testing this (following exact reproduce from op) I was able to get the error using the presets & also in ui.
adding
to the file header (line1) in init.py & utils.py
& I cannot reproduce the issue
will commit fix soon
This issue was referenced by
ba6a119db2
Changed status from 'Open' to: 'Resolved'
awesome, I didn't know file encodings could cause things like this. Its a lot better than my ugly workaround. thanks.