|
[Sponsors] |
October 22, 2023, 08:09 |
Unicode decode error
|
#1 |
New Member
wq yang
Join Date: Oct 2023
Posts: 7
Rep Power: 3 |
sir/lady:
Greeting. I am trying to compile a udf but receiving the following error: UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 6329: illegal multibyte sequence: File "E:\udf learning\case1\libudf\win64\3ddp_node\SConstruct", line 180: generate_udf_source(t, s, env) File "E:\udf learning\case1\libudf\win64\3ddp_node\SConstruct", line 91: for line in f: At first, I thought it may be a syntax error. However, when I checked my codes, I received the same error. Then I tried to compile the codes compiled successfully before, again the same error appeared. After googling I found this is related to python and changing the file encoding to UTF-8 might solve the problem. But how to do that? Thank you. |
|
October 25, 2023, 07:31 |
|
#2 |
New Member
wq yang
Join Date: Oct 2023
Posts: 7
Rep Power: 3 |
I don't know what‘s wrong with my fluent. But when I reinstalled it, the error disappeared.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] blockMesh with double grading. | spwater | OpenFOAM Meshing & Mesh Conversion | 92 | January 12, 2019 10:00 |
[OpenFOAM] Native ParaView Reader Bugs | tj22 | ParaView | 270 | January 4, 2016 12:39 |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM Community Contributions | 300 | October 29, 2014 19:00 |
OpenFOAM without MPI | kokizzu | OpenFOAM Installation | 4 | May 26, 2014 10:17 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |