[lang_en]
I am working on a Flex and ColdFusion file upload/download component and came across the fun Linux and Windows file format issues. The files will upload correctly but if you try and pull down a JPG file form the linux server with ColdFusion's
[xml]
[/xml]
For JPG's the code above will write the file as strange charactors and cause the JPG be unusable. You must set the "charset" attribute in the
[xml]
[/xml]
I assume it could even be another value depending on on the server's default values. So just beware of the charset value issues when downloading binary files with ColdFusion from linux servers.
[/lang_en]
[lang_zh]
与Flexå’ŒColdfusion案å·upload/下载componentæ“作时我碰到一些好玩的Linux å’ŒWindows file format的问题。Uploadä¸€äº›æ¡ˆå·æ²¡é—®é¢˜ä½†æ˜¯,除éžä½ 使用Coldfusion的缺çœcharset tag, LinuxæœåŠ¡å™¨çš„JPG就办ä¸åŠ¨ã€‚
[xml]
[/xml]
用上述的代ç 会使JPG"ä¸èƒ½ç”¨"。在tagå†…ä½ å¿…é¡»è®¾å®š"charset"。下é¢çš„ä»£ç æœ‰æ•ˆã€‚
[xml]
[/xml]
ä¾é æœåŠ¡å™¨çš„ç¼ºçœ, æˆ‘è®¤ä¸ºè¿˜æœ‰åˆ«çš„åŠžæ³•ã€‚æ‰€ä»¥å½“ä½ æƒ³ä»ŽLinux æœåС噍,用ColdFusionä¸‹è½½äºŒè¿›åˆ¶æ¡ˆå·æ—¶,è¦å°å¿ƒcharset的问题。
[/lang_zh]







