查看: 5987|回复: 2

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

  [复制链接]

4

主题

3

回帖

46

积分

管理员

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

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

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

×
Linux 验证Teamcenter字符集ISO8859-1方法
* O- B: R# K: r$ N: ?% _7 i3 A7 d
9 ?$ U3 M8 r; Q: L9 D, ~

5 t9 K" l0 \, H3 ]# y6 r) ]$ ~2 {Linux系统,teamcenter安装工具需要ISO8859-1的字符集。
7 `( w5 K8 E  h. ^# r  N为什么一定需要这个字符集呢?
" m+ C  x, N  B' T6 `' z6 H主要是因为teamcenter10.1 的安装bat不再是使用.dat的格式文件了,都用xml格式了。XML在读取和转化的过程中,系统必须能够处理非英文non-ASCII的字符集,所以在本地化之前系统必须加载这种字符集。
3 B- g* r9 |. C9 x! Q8 G通过locale –a  可以查看当前系统的字符集,如果不是要求的字符集,需要添加,具体方法如下:
: H1 v) ?" f6 s$ `- R) C" Nexport LC_ALL=en_US.ISO8859-1
! ?1 b8 s" i) v& a; @4 gecho LC_ALL

1 N. o; V! w: U$ s' G% h6 A/ g8 v
+ S# ^( K. n; J6 L' t% g% R  D% e$ T! u, K) D
上海点团信息科技有限公司,承接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中还是有乱码呢,处理这个文件时报错。  U2 U+ n8 K- V; ?5 q$ N
Executing process templates4 M0 f& m" P$ q* ~; ~" H' ^0 b$ _* Q4 P
Adding Template to Master File...4 H" Z5 ?( z( c5 u' s
Backing up the Consolidated Model File...' b! b5 W8 M! P2 S4 S
Backing up the Consolidated Model Localization File...( E/ z" O9 V8 k( S
Finding Applicable Locales...* J: s3 ^3 L6 y1 f
Finding Applicable Locales...
  h" s" E0 q* y5 w$ u9 PCreating the Consolidated Model File...% N3 D- x, c) c/ W' ^1 ^* _1 @1 K
Creating the Localization Consolidated Model File..., x6 u. x- n: T; M& a  v
Loading the Backup File...- P0 R$ D+ Q/ w5 K% w$ R
***ERROR : Data Model Errors in file /usr/Siemens/tcdata/model/model_backup.xml.
! L: f, X8 ~% D8 D6 ]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.3 E0 D3 c' l2 P
Error! 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./ \0 }4 B& r( r5 v
Error! 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.2 O5 E% O% R( E+ ^
Error! 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.
, w4 `0 w) t: X% J* Q& \; ZError! 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.
$ i; `. Y; t: e# |+ p+ r) UError! 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.0 E6 R3 b( a8 n. O, K# x/ }
Error! 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.: g9 M  v8 F6 E- `
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.3 x+ [. D: p0 y. a( E/ F" F
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.+ L- d0 `0 Y1 o! T
Error! 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 t; d' ~5 [6 G$ [( Z2 C
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.% {! N& Y* S8 f3 w: k# X: _
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.0 t0 Y2 q: \" X! ?. r2 I7 \
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.7 u( e+ v" x% G/ \; a9 ^# U% O
Please check the errors.' z9 Q, g. O2 t  {
Aborting...% y, m6 V! J3 t& H! q" b3 m& k
Error in Loading backup Model, W3 H  L, a' S) `. c6 F! m
**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' W' o' L8 @' c5 S% A
Restoring the files from the database.8 n& ~( H% P% G  g$ r% }' [# O
Updating FileVersions.txt before restoring files7 t  [( l3 u$ W0 n) U$ n- K
java.lang.Exception' E/ q6 b* c  f% G4 S4 k' ]7 V" |
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.generateDelta(Unknown Source)+ i- O( Q: w/ f" y7 t1 ~4 _! o  {/ m8 {
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.compareModels(Unknown Source)* |0 w  Q$ k8 r. F/ P/ {- `
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.bmideDbSetup(Unknown Source)9 m8 W/ O, z" j7 d% _
        at com.teamcenter.bmide.foundation.core.consolidator.ProcessTemplates.bmideDbSetup(Unknown Source)/ T7 z( e6 ^) [, K7 L2 P' G% G1 F
        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstall.processTemplates(Unknown Source)' m& F0 k' o& H+ O
        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstall.executePreTemplateInstall(Unknown Source)
) \& O# o' f4 Y" }$ Q        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstallMain.execute(Unknown Source)
  Q. a* o; P" i5 S8 r/ x5 O        at com.teamcenter.bmide.foundation.core.internal.install.PreTemplateInstallMain.main(Unknown Source)' j8 ?( c# ]) @; B- ?: c  J  B
Process Templates failed6 B% r2 D4 _& v7 P
Script execution failed./ \0 e& a* V, o
Command end time: Thu Aug 01 05:19:00 PM 20191 z" E0 ?4 r- b% K" `" @
Command duration: 2 minutes 20.278 seconds
* E1 p2 ?* U" ]8 c5 S4 sERROR: Execution of command 1 failed with error code 1' P" T7 f9 T! J
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.doteam.tech
回复 支持 反对

使用道具 举报

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

本版积分规则

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