Using mex - get error "Unknown encoding 'cp1252"
이전 댓글 표시
Hi, i want to use the mex-functions. By calling "mex -setup" or other mex-functions i get the error Unknown encoding 'cp1252. Debugging and tracing the mex-files shows an error code 255 of DOS. The error occurs in line 176 (DOS-Output in file: mexutils.pm). I'm using WinXPx86 SP3 with MSVS 2010.
Is there any solution for this error?
Thanks!
댓글 수: 2
Martin B
2012년 7월 31일
I got the exact same error message today. Hope somebody is able to help here.
Thanks a lot.
Christoph
2012년 8월 3일
this is quite wired and frustrating...got this error today, too. I don't have any clue how to elimanate this error or how to work around. Did anyone solved this error?
Kind regards, CN
채택된 답변
추가 답변 (1개)
Tobias
2013년 6월 4일
0 개 추천
Hello, I have a similar problem. When calling "mex -setup", I get the same error message Unknown encoding 'cp1252 ' refering to mexutils.pm line 176. I'm also using WinXP 32Bit, SP3 and Matlab 2013b. Unfortunately Martins solution didn't work for me. I appreciate any help, advice etc.
Thanks in advance!
댓글 수: 1
Tobias
2013년 6월 4일
*solved
It seems that Matlab2013a has not the exact same mexutils.pm file. obviously i had to put $encoding = 0; several lines below...
카테고리
도움말 센터 및 File Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!