List Info

Thread: Why '+' must be replaced by ' '?




Why '+' must be replaced by ' '?
country flaguser name
China
2007-12-02 23:02:08

Hi

 

      I find that helix player based on atlas310 can¡¯t handle filename with ¡®+¡¯ symbol correctly. After debugging, I find the reason is that: in file filesystem/local/full/smplfsys.cpp function CSimpleFileObject::UpdateFileNameMember(), ¡®+¡¯ is replaced by ¡® ¡®; in file common/util/rtsputil.cpp function URLUnescapeBuffer(), ¡®+¡¯ is replaced by ¡® ¡®. When HELIX_FEATURE_MINI_SMPLFSYS isn¡¯t defined, smplfsys.cpp is used; when it is defined, rtsputil.cpp is used. Can anybody tell me why ¡®+¡¯ must be replaced by ¡® ¡®?

 

      I have a phone e680i, Motorola product, using cayenne150. It can play file with ¡®+¡¯ in filename.

      The attachment is file used for test. It¡¯s an mp3 file, name from a 3gp file. You can just use a name such as ¡°1+2.mp3¡±.

      Thanks.

 

Best Regards

-------------------------------------------------------
Eric Li (
Àî¾ü)
www.realnetworks.com
www.helixcommunity.org
-------------------------------------------------------

 

  
RE: Why '+' must be replaced by ' '?
country flaguser name
United States
2007-12-03 07:44:34
I'm not sure why it is replaced in filenames - probably to
support some
legacy feature. In URLs, I believe '+' has a special
meaning. Does it
work if you escape the name? For instance,

1+2.mp3 becomes 1%2B2.mp3

Eric
=============================================
Eric Hyche (ehychereal.com)
Technical Lead
RealNetworks, Inc.  

> -----Original Message-----
> From: lijun [mailto:ljunreal.com] 
> Sent: Monday, December 03, 2007 12:02 AM
> To: filesystem-devhelixcommunity.org
> Cc: ehychereal.com; 'Lovish Dhawan'; 'anshuman';
'Rishi 
> Mathew'; 'Rahul Agarwal'
> Subject: [filesystem-dev] Why '+' must be replaced by '
'?
> 
> Hi
> 
>  
> 
>       I find that helix player based on atlas310 can¡¯t
handle 
> filename with ¡®+¡¯ symbol correctly. After debugging,
I find 
> the reason is that: in file 
> filesystem/local/full/smplfsys.cpp function 
> CSimpleFileObject::UpdateFileNameMember(), ¡®+¡¯ is
replaced by 
> ¡® ¡®; in file common/util/rtsputil.cpp function 
> URLUnescapeBuffer(), ¡®+¡¯ is replaced by ¡® ¡®. When 
> HELIX_FEATURE_MINI_SMPLFSYS isn¡¯t defined,
smplfsys.cpp is 
> used; when it is defined, rtsputil.cpp is used. Can
anybody 
> tell me why ¡®+¡¯ must be replaced by ¡® ¡®?
> 
>  
> 
>       I have a phone e680i, Motorola product, using 
> cayenne150. It can play file with ¡®+¡¯ in filename.
> 
>       The attachment is file used for test. It¡¯s an
mp3 file, 
> name from a 3gp file. You can just use a name such as
¡°1+2.mp3¡±.
> 
>       Thanks.
> 
>  
> 
> Best Regards
> 
>
-------------------------------------------------------
> Eric Li (Àî¾ü)
> www.realnetworks.com
> www.helixcommunity.org
>
-------------------------------------------------------
> 
>  
> 
> 


_______________________________________________
Filesystem-dev mailing list
Filesystem-devhelixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/
filesystem-dev

RE:RE: Why '+' must be replaced by ' '?
country flaguser name
China
2007-12-05 02:23:15
Hi Eric

      Your method works. It's sure that the TLC must give
HXPlayer::OpenURL(const char* pURL) an escaped URL. And URL
got in wm50 is
not escaped yet. I am working on issue of not supporting
Chinese symbol. The
escape issue is lower priority. I think maybe next week I
will solve it and
send out a patch.

	Thanks, Eric. 

Best Regards

Eric Li (Àî¾ü)
 
>-----ÓʼþÔ­¼þ-----
>·¢¼þÈË: Eric Hyche [mailto:ehychereal.com]
>·¢ËÍʱ¼ä: 2007Äê12ÔÂ3ÈÕ 21:45
>ÊÕ¼þÈË: ljunreal.com; filesystem-devhelixcommunity.org
>³­ËÍ: 'Lovish Dhawan'; 'anshuman'; 'Rishi Mathew';
'Rahul Agarwal'
>Ö÷Ìâ: RE: [filesystem-dev] Why '+' must be replaced by '
'?
>
>
>I'm not sure why it is replaced in filenames - probably
to support some
>legacy feature. In URLs, I believe '+' has a special
meaning. Does it
>work if you escape the name? For instance,
>
>1+2.mp3 becomes 1%2B2.mp3
>
>Eric
>=============================================
>Eric Hyche (ehychereal.com)
>Technical Lead
>RealNetworks, Inc.
>
>> -----Original Message-----
>> From: lijun [mailto:ljunreal.com]
>> Sent: Monday, December 03, 2007 12:02 AM
>> To: filesystem-devhelixcommunity.org
>> Cc: ehychereal.com; 'Lovish Dhawan'; 'anshuman';
'Rishi
>> Mathew'; 'Rahul Agarwal'
>> Subject: [filesystem-dev] Why '+' must be replaced
by ' '?
>>
>> Hi
>>
>>
>>
>>       I find that helix player based on atlas310
can¡¯t handle
>> filename with ¡®+¡¯ symbol correctly. After
debugging, I find
>> the reason is that: in file
>> filesystem/local/full/smplfsys.cpp function
>> CSimpleFileObject::UpdateFileNameMember(), ¡®+¡¯ is
replaced by
>> ¡® ¡®; in file common/util/rtsputil.cpp function
>> URLUnescapeBuffer(), ¡®+¡¯ is replaced by ¡® ¡®.
When
>> HELIX_FEATURE_MINI_SMPLFSYS isn¡¯t defined,
smplfsys.cpp is
>> used; when it is defined, rtsputil.cpp is used. Can
anybody
>> tell me why ¡®+¡¯ must be replaced by ¡® ¡®?
>>
>>
>>
>>       I have a phone e680i, Motorola product,
using
>> cayenne150. It can play file with ¡®+¡¯ in
filename.
>>
>>       The attachment is file used for test. It¡¯s
an mp3 file,
>> name from a 3gp file. You can just use a name such
as ¡°1+2.mp3¡±.
>>
>>       Thanks.
>>
>>
>>
>> Best Regards
>>
>>
-------------------------------------------------------
>> Eric Li (Àî¾ü)
>> www.realnetworks.com
>> www.helixcommunity.org
>>
-------------------------------------------------------
>>
>>
>>
>>


_______________________________________________
Filesystem-dev mailing list
Filesystem-devhelixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/
filesystem-dev

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )