ファイル名に4バイト文字が含まれていると、UnicodeEncodeErrorでXCPの移行が失敗する
環境
- XCP
- ONTAP 9
- CIFS
問題
XCPコピー/同期操作が次のログエラーで失敗します。
UnicodeEncodeError: 'charmap' codec can't encode characters in position xx-xx: character maps to <undefined>
例
--- Logging error ---
Traceback (most recent call last):
File "logging\__init__.py", line 1086, in emit
File "encodings\cp1252.py", line 19, in encode
UnicodeEncodeError: 'charmap' codec can't encode characters in position 91-92: character maps to <undefined>
Call stack:
File "threading.py", line 930, in _bootstrap
File "threading.py", line 973, in _bootstrap_inner
File "threading.py", line 910, in run
File "xcp\xcpLogging.py", line 249, in receive
File "logging\handlers.py", line 75, in emit
File "logging\__init__.py", line 1187, in emit
File "logging\__init__.py", line 1091, in emit
Message: 'failed to copy "Filename️.pdf.txt": (123, \'CreateFile\', \'The filename, directory name, or volume label syntax is incorrect.\')'
Arguments: None
failed to copy "Filename️.pdf.txt": (123, 'CreateFile', 'The filename, directory name, or volume label syntax is incorrect.')