CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Unicode decode error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 22, 2023, 07:09
Default Unicode decode error
  #1
New Member
 
wq yang
Join Date: Oct 2023
Posts: 7
Rep Power: 2
LOSTSTARS is on a distinguished road
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.
LOSTSTARS is offline   Reply With Quote

Old   October 25, 2023, 06:31
Default
  #2
New Member
 
wq yang
Join Date: Oct 2023
Posts: 7
Rep Power: 2
LOSTSTARS is on a distinguished road
I don't know what‘s wrong with my fluent. But when I reinstalled it, the error disappeared.
LOSTSTARS is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
[OpenFOAM] Native ParaView Reader Bugs tj22 ParaView 270 January 4, 2016 11:39
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


All times are GMT -4. The time now is 02:36.