php-i18n Digest 21 Apr 2006 17:24:26 -0000 Issue 325

Topics (messages 997 through 998):

Re: Converting URL processing funcns in PHP to Unicode
        997 by: Moriyoshi Koizumi

Öи߼¶¹ÜÀíÈËÔ±¹ÜÀíÀíÂۺͼ¼ÇÉÅàѵ
        998 by: 

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Just to put my two yen in..

Andrei Zmievski wrote:


I haven't posted this on the internals list as yet, do you guys have
any comments/suggestions ?

[1] string http_build_query(mixed formdata [, string prefix [, string
arg_separator]])
Generates a form-encoded query string from an associative array or
object - uses urlencode() mentioned below.


[2] mixed parse_url(string url, [int url_component])
Split URL into components: username, password, hostname, port, etc.

None specifies in what encoding an URI to be represented, while an IRI's not.
So we'd better have the parameter to specify the encoding, which falls back
to UTF-8 when not given.


[3] string urlencode(string str)
[4] string urldecode(string str)
urlencode() replaces non-alphanumerics (except for hyphen, underscore
& period) with equivalent 2-digit hex escape sequences of the form
%xx. Space is replaced with plus(+).

The same argument as above applies to these.


[5] string rawurlencode(string str)
[6] string rawurldecode(string str)
rawurlencode() replaces non-alphanumerics (except for hyphen,
underscore & period) with equivalent 2-digit hex escape sequences of
the form %xx.

A couple of pblms in converting [3]-[6] above to handle Unicode:
(1) 2-digit hex sequences don't cover the range of Unicode codepts.
(2) The existing code has #define sections to handle EBCDIC and ASCII
input.

Ditto.



[7] string base64_encode(string str)
[8] string base64_decode(string str)
Implement base64 MIME

Is it correct to extend [7]&[8] above to support Unicode simply by
changing the iteration over the input string data ? Or should an
alternate transfer encoding method (quoted MIME ?) be used ?

The string should be handled as a binary sequence definitely. If the string
is Unicod'ized, base64_encode() then has to convert into a representational encoding
(possibly assumable as script_encoding?) and encode in base64, and
base64_decode() has to decode it and convert from a representational encoding into
Unicode likewise.



I had also posted the foll Q last week on the internals list, but
didn't get any responses. Any comments as to correct approach ?

[3] string addcslashes(string text, string charlist)
[4] string stripcslashes(string text)
Escape chars < 32 or > 126 with octal sequences, and escape
characters from charlist with backspace.


Escaping chars/codepts with values > 126 is a pblm in Unicode
strings. Using the 3-digit octal escape sequence, only the first
0x1FF codepts will be escaped. One soln is to only escape values < 32
with the 3-digit octal sequence. Or use hex sequences for escaping
everything.

I think escaping the original Unicode string is somewhat pointless and
it has to be done on the byte sequence converted to the intended
encoding (script_encoding / output_encoding) instead. Thus the mentioned
issue wouldn't exist basically.

Moriyoshi

--
小泉 守義 <[EMAIL PROTECTED]>

--- End Message ---
--- Begin Message ---
我们的邮件给您带来了不便,请随手删除或按下面的联系方式联系退订,谢谢!
**********************************************************************************************************
                                   中高级管理人员管理理论和技巧培训 

                                   2006年5月25-26日  上海  2800元/人

课程背景:
*********
作为中层干部,如何理解自己的职责、角色和心态并掌握基本的管理技巧,突破沟通障碍,学会临危不乱、有条不紊地做好自己部门的工作,创造性地工作,是公司进一步发展的重要前提也是现有中层管理人员的迫切要求。

培训收益:
********
? 掌握计划的基本管理理论和技巧
? 能组织简单的项目管理
? 掌握个人时间管理的原则
? 掌握授权的步骤

特邀讲师:
********
 徐老师  
毕业于上海交通大学,获得工商管理硕士学位。又在德国卡尔斯鲁尔大学进修三年,获得lic.rer.reg学位。他具有十余年的管理理论研究、教学和实际从事管理工作的经验,担任过副教授、研究室主任、跨国公司经理和管理顾问等职务。近年来一直在跨国公司如Coca-Cola中国公司、Alcatel中国公司等,从事管理培训和管理咨询工作,积累了丰富的经验和案例,将管理理论知识及管理技巧融于实践中,在为跨国公司作培训中总结和开发出了这一套适合于中国国情又体现现代管理发展水平的管理培训教材,并在许多外资公司的培训中得到不断充实和完善。他擅长的课程包括:新任主管管理技巧、中层经理管理技巧、演示技巧、培训需求分析、绩效管理、系统性思考、时间管理、沟通与效率、培训师的培训、重要客户管理等。

课程大纲:
********
 第一单元:项目管理和工作计划
?     计划的定义
?     计划的类型
?     组织层次结构中的计划
?     计划的基础
?     从目标到行动计划     
?     分解子任务
?     头脑风暴法
?     工作分解结构 (WBS)
?     活动网络图(AND)
?     甘特图(Gantt)
?     负荷图(Load Chart)
?     制定一个行动计划
第二单元:什么是时间? 如何有效地管理你的时间?
培训内容:
?     时间的特点?
?     你的一天是怎么渡过的?
?     管理者能不能控制他们的全部时间?
?     你时间的价值?
?     如何利用你的时间更有效地工作?         有效时间管理的步骤
        活动的重要性和紧急性分析
?     时间管理的策略
?     了解你的生产率周期
第三单元:授权和最典型的时间使用误区的研究
?     4D`s原则
?     时间管理理论的发展
?     案例讨论
?     如何授权?
?     授权的用处
?     如何授权? 
?     授权的障碍
?     授权需要注意的十个问题
?     因欠缺计划而导致时间浪费; 
?     因不好意思拒绝他人托付而导致时间浪费; 
?     因拖延而导致时间浪费; 
?     因不速之客的干扰而导致时间浪费; 
?     因电话的干扰而导致时间浪费;
?     因文件满桌而导致时间浪费;
?     因“事必躬亲”而导致时间浪费; 

*************************************************************************************************************

培训费用:2800RMB/人(含培训费、资料费,午餐);住宿可协助安排,费用自理。
培训地点:上海市汉中广场、青年文化活动中心
培训费用电汇至:  农行浦东分行东昌所    银行帐号:033377-00801142655
户名:上海斯顿企业管理咨询有限公司
咨询顾问:陈凤霞(小姐)                
咨询热线:021-58775881*825   58882344
传真号码:021-51079509
E-MAIL:[EMAIL PROTECTED]
免费咨询热线:800-988-0232 


《中高级管理人员管理理论和技巧培训》报名表格
单位名称______________________电话_______________传真_____________
地址___________________________________________邮编_____________
姓名________________性别______手机_______________职务_____________
姓名________________性别______手机_______________职务_____________
E-mail:______________________是否预定房间__________付款金额__________ 


 

--- End Message ---

Reply via email to