暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

【技巧分享】BMIDE加载报错,Error# BASE-10001: "ENCODING VALIDATION ERROR"

PLM有个号 2021-09-17
3424

前言

BMIDE导入工程时候报错Error# BASE-10001: "ENCODING VALIDATION ERROR" ,错误# BASE-10001: “编码验证错误”。经分析解决发现需要设置字符编码

错误

从另外一台服务器拷贝一个TC12.1的BMIDE工程导入TC12.1 OOTB环境时候未能正确加载项目

图片1:加载时候报错(中文)

图2:加载时候报错(英文)


中文报错信息

    错误# BASE-10001: “编码验证错误”-  C:\Siemens\Teamcenter12\bmide\workspace\12000.0.0\a9achteck\extensions\default.xml 行:11105
    “ description=操作说明”中找到无效字符。请输入属于以下字符集的文本:“us-ascii”。
    请参见文档中名为“业务建模器 IDE 故障排除”的部分以获取更多详细信息。


    英文报错信息

      Error# BASE-10001: "ENCODING VALIDATION ERROR" - C:\Siemens\Teamcenter12\bmide\workspace\12000.0.0\a9achteck\extensions\default.xml Line:9207
      Invalid characters were found in " <TcLOVValue value=工艺文件". Please enter text that belongs to the character set: "us-ascii".
      Refer to the section named "Troubleshooting the Business Modeler IDE" in the documentation for more details.Error# BASE-10001: "ENCODING VALIDATION ERROR" - C:\Siemens\Teamcenter12\bmide\workspace\12000.0.0\a9achteck\extensions\default.xml Line:9207
      Invalid characters were found in " <TcLOVValue value=工艺文件". Please enter text that belongs to the character set: "us-ascii".
      Refer to the section named "Troubleshooting the Business Modeler IDE" in the documentation for more details.



      图片3:报错效果(中文)

      图片4:报错效果(英文)

      分析

      该报错是字符编码导致的, BMIDE对应的本地化有效的编码和导入的工程中文本编码不匹配,比如这个例子中工程的文本字符编码是utf-8,而bmide有效的编码是us-ascii,所以提示:请输入属于一下字符的文本:"us-ascii"

      解决

      修改BMIDE对应的本地有有效编码为utf-8

      1.编辑器打开%TC_ROOT%\lang\textserver\no_translation\textsrv_text.xml文件(如:C:\Siemens\Teamcenter12\lang\textserver\no_translation\textsrv_text.xml)

      2.将locale_validation_encoding_en_US和locale_validation_encoding_zh_CN对应的key值均修改为utf-8

      修改前

         

            <!-- SECTION DEFINING THE SMALLEST OR CUSTOM ENCODING FOR EACH LOCALE:THIS IS USED FOR BMIDE LOCALIZATION VALIDATION -->
        <key id="locale_validation_encoding_en_US">us-ascii</key>
        <key id="locale_validation_encoding_cs_CZ">iso-8859-2</key>
        <key id="locale_validation_encoding_pl_PL">iso-8859-2</key>
        <key id="locale_validation_encoding_de_DE">iso-8859-1;iso-8859-2</key>
        <key id="locale_validation_encoding_es_ES">iso-8859-1</key>
        <key id="locale_validation_encoding_fr_FR">iso-8859-1</key>
        <key id="locale_validation_encoding_it_IT">iso-8859-1</key>
        <key id="locale_validation_encoding_pt_BR">iso-8859-1</key>
        <key id="locale_validation_encoding_ja_JP">shift_jis</key>
        <key id="locale_validation_encoding_ko_KR">euc_kr</key>
        <key id="locale_validation_encoding_ru_RU">iso-8859-5</key>
        <key id="locale_validation_encoding_zh_CN">gb2312</key>
        <key id="locale_validation_encoding_zh_TW">big5</key>

        修改后

              <!-- SECTION DEFINING THE SMALLEST OR CUSTOM ENCODING FOR EACH LOCALE:THIS IS USED FOR BMIDE LOCALIZATION VALIDATION -->
          <key id="locale_validation_encoding_en_US">utf-8</key>
          <key id="locale_validation_encoding_cs_CZ">iso-8859-2</key>
          <key id="locale_validation_encoding_pl_PL">iso-8859-2</key>
          <key id="locale_validation_encoding_de_DE">iso-8859-1;iso-8859-2</key>
          <key id="locale_validation_encoding_es_ES">iso-8859-1</key>
          <key id="locale_validation_encoding_fr_FR">iso-8859-1</key>
          <key id="locale_validation_encoding_it_IT">iso-8859-1</key>
          <key id="locale_validation_encoding_pt_BR">iso-8859-1</key>
          <key id="locale_validation_encoding_ja_JP">shift_jis</key>
          <key id="locale_validation_encoding_ko_KR">euc_kr</key>
          <key id="locale_validation_encoding_ru_RU">iso-8859-5</key>
          <key id="locale_validation_encoding_zh_CN">utf-8</key>
          <key id="locale_validation_encoding_zh_TW">big5</key>


          3.重新打开BMIDE后,问题解决

          图片5:修改textsrv_text.xml文件中编码后成功打开效果


          文章转载自PLM有个号,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

          评论