查看: 5901|回复: 2

[升级] Linux 验证teamcenter字符集ISO8859-1方法

  [复制链接]

4

主题

3

回帖

40

积分

管理员

积分
40
发表于 2014-4-4 13:23:35 | 显示全部楼层 |阅读模式

请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!

您需要 登录 才可以下载或查看,没有账号?注册

×
Linux 验证Teamcenter字符集ISO8859-1方法
  O1 x; v1 f2 X% z* ?! W7 f0 O; L: Z( Z# E* g0 h6 C$ Q  k

/ u( h' Y" g0 g3 O+ ?/ B. O9 k1 eLinux系统,teamcenter安装工具需要ISO8859-1的字符集。( H+ d1 ?  k+ I  E9 g7 }9 M, T
为什么一定需要这个字符集呢?" U& L# m" _3 D# t! z. h
主要是因为teamcenter10.1 的安装bat不再是使用.dat的格式文件了,都用xml格式了。XML在读取和转化的过程中,系统必须能够处理非英文non-ASCII的字符集,所以在本地化之前系统必须加载这种字符集。
# ~/ u' ^. I2 R9 v. U! p9 U# K通过locale –a  可以查看当前系统的字符集,如果不是要求的字符集,需要添加,具体方法如下:
8 c; ?" T+ U' f7 ~+ u3 S0 R1 \export LC_ALL=en_US.ISO8859-18 Y: o5 \  g4 Z1 J4 Y
echo LC_ALL

4 H& }% Y9 H. B( V
$ A! |% Y$ c: G$ [
# C9 R4 q4 {( v" p) R; _
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.doteam.tech
回复

使用道具 举报

2

主题

66

回帖

567

积分

高级会员

积分
567
发表于 2014-9-27 16:47:11 | 显示全部楼层
为什么有人windows平台下TC10不能用utf-8
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.doteam.tech
回复 支持 反对

使用道具 举报

0

主题

29

回帖

92

积分

注册会员

积分
92
发表于 2019-8-2 07:49:27 | 显示全部楼层
修改了,但model_backup.xml中还是有乱码呢,处理这个文件时报错。: k) e9 [( \) t- Q. H' ?
Executing process templates
4 @/ {7 A: U4 Q) z  D) f3 z2 a& `Adding Template to Master File...
' @8 q0 Z5 e* C7 T0 k' \# G, [Backing up the Consolidated Model File...
+ M* y8 r) E: iBacking up the Consolidated Model Localization File...% j0 ^0 M% [( k1 O3 }* j* ^' y, c; o
Finding Applicable Locales...
: ~% x7 f0 i5 P& ZFinding Applicable Locales...
1 H3 X: j4 ^  C) tCreating the Consolidated Model File.... H4 T" M3 `4 P# X/ Q9 N
Creating the Localization Consolidated Model File...
5 z. l) e4 a! O: i- {( D+ G4 cLoading the Backup File...+ k6 S  z) H4 P4 t; Z# @4 W7 h: |6 A
***ERROR : Data Model Errors in file /usr/Siemens/tcdata/model/model_backup.xml.1 h" q, M" |% N/ @* Q
Error! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:19565 Column:206 The text "ÔÚ¹ØÁªÖд´½¨ - ÒÑÆúÓᣲμûÖ§³ÖÎĵµÖÐÓй..." cannot exceed "128" bytes. Your text is 142 bytes too long.
  T1 \5 ?7 S- a) @* ~% o/ iError! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:19569 Column:215 The text "ÔÚ¹ØÁªÖÐÌí¼ÓµÄ¸¸¼þ - ÒÑÆúÓᣲμûÖ§³ÖÎĵ..." cannot exceed "128" bytes. Your text is 154 bytes too long.
+ c' B: n) s4 y1 sError! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:19617 Column:217 The text "ÔÚ¹ØÁªÖÐÒÆ³ýµÄ¸¸¼þ - ÒÑÆúÓᣲμûÖ§³ÖÎĵ..." cannot exceed "128" bytes. Your text is 154 bytes too long.
# v" y6 R, t8 h6 ~7 ?; x5 xError! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:21805 Column:207 The text "ÓÃÓÚ´´½¨µÄ±à¼­¹ØÁª¡£²Î¼ûÖ§³ÖÎĵµÖÐÓÐ¹Ø F..." cannot exceed "128" bytes. Your text is 152 bytes too long.
/ w* p- c. P$ p3 YError! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:21857 Column:197 The text "µ±Ç°±à¼­¹ØÁª - ÒÑÆúÓᣲμûÖ§³ÖÎĵµÖÐÓй..." cannot exceed "128" bytes. Your text is 142 bytes too long.0 Z( x, s- [/ z  U3 [
Error! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:28007 Column:177 The text "Íâ¹Û¸üÐÂÆ÷°æ±¾ÊÓͼӰÏì¸ù½ÚµãÁÐ±í¡£ÒÑÆúÓÃ..." cannot exceed "128" bytes. Your text is 132 bytes too long.
9 s0 T" h2 j1 y: s2 U( C- WError! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:337 Column:170 The text "Íâ¹Û¸üÐÂÆ÷°æ±¾ÊÓͼӰÏìÔöÁ¿¸ü¸ÄµÄ¸ù½Úµã¡£..." cannot exceed "128" bytes. Your text is 144 bytes too long.. U. }" e2 }) A
Error! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:421 Column:172 The text "Íâ¹Û¸üÐÂÆ÷£¨¸ù¾ÝÍâ¹Û¸ù½ÚµãÓÐЧÐÔ°ü£©¡£ÒÑ..." cannot exceed "128" bytes. Your text is 140 bytes too long.! j7 U, r" O' w0 C# H. P6 u
Error! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:705 Column:166 The text "Íâ¹Û°æ±¾¹ØÏµ¶ÔÏóÍâ¹ÛÀúÊ·¼Ç¼ÌõÄ¿¡£ÒÑÆúÓÃ..." cannot exceed "128" bytes. Your text is 132 bytes too long.
0 V) [  K" Z6 M  a/ lError! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:1763 Column:175 The text "Íâ¹Û°æ±¾¹ØÏµ¶ÔÏóÈÕÆÚÓÐЧÐÔÀúÊ·¼Ç¼ÌõÄ¿¡£..." cannot exceed "128" bytes. Your text is 144 bytes too long.
9 n$ @5 F0 o% D. o4 k# `4 {Error! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:3819 Column:170 The text "Íâ¹Û¸üÐÂÆ÷£¨¸ù¾ÝÍâ¹Û¸ù½Úµã°æ±¾°ü£©¡£ÒÑÆú..." cannot exceed "128" bytes. Your text is 136 bytes too long.' b( |- |5 }/ O! b
Error! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:4271 Column:172 The text "Íâ¹Û¸üÐÂÆ÷°æ±¾ÊÓͼӰÏìÒѸü¸Ä°æ±¾µÄ¸ù½Úµã..." cannot exceed "128" bytes. Your text is 148 bytes too long.3 ]1 x) {, ]9 R3 X
Error! Model Error: /usr/Siemens/tcdata/model/lang/model_backup_lang.xml Line:4882 Column:174 The text "Íâ¹Û¸üÐÂÆ÷£¨¸ù¾ÝÍâ¹Û¸ù½Úµã¹¤×÷°ü£©¡£ÒÑÆú..." cannot exceed "128" bytes. Your text is 136 bytes too long.
- Z4 E( Z! f2 L9 H* p8 `8 o1 ZPlease check the errors.
8 x; q0 p1 A& PAborting...
; j8 h& D8 ]/ [' h$ l+ fError in Loading backup Model- t' J" N+ K+ \6 ~0 p
**The backup of all files used for delta generation is available in /usr/Siemens/Teamcenter11/logs/1908011712/compare_history/install/model_compare_2019_08_01_17-18-59.zip* Z  i$ e/ |! x6 L% D
Restoring the files from the database.
6 K) `+ J! ^& p3 SUpdating FileVersions.txt before restoring files5 ^/ {# g- a* S" T+ c
java.lang.Exception( M& ?0 x. y. ^, O' j! Y
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.generateDelta(Unknown Source); K  K  `( v8 N/ E' ~
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.compareModels(Unknown Source)
1 j# r0 |: a/ \6 ]1 U$ \; M$ V* s1 s        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.bmideDbSetup(Unknown Source)* \  r3 ]+ J# V  h) V& S2 ~) f
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.bmideDbSetup(Unknown Source)
" ~# {. x# a7 U# ^" _; ]( H! ^        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstall.processTemplates(Unknown Source)
  r$ }7 E( C' w8 }$ b        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstall.executePreTemplateInstall(Unknown Source)
2 l) h* ?0 x3 @. P- m+ Z2 j        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstallMain.execute(Unknown Source)
# c. I, P" X5 m1 @+ g/ k/ X4 X        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstallMain.main(Unknown Source)
9 _. [/ H, \' r/ nProcess Templates failed2 Q1 d: U, h0 q; q+ c1 G
Script execution failed.& t( g; |7 h% J0 F7 C
Command end time: Thu Aug 01 05:19:00 PM 20190 E9 z2 n2 T: C7 F0 ^/ e" o0 {0 [
Command duration: 2 minutes 20.278 seconds* y  a( q* ]2 C* M% s! J; Y5 y
ERROR: Execution of command 1 failed with error code 18 I$ E1 u% N: @6 J
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.doteam.tech
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

在本版发帖
关注公众号
QQ客服返回顶部