Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 1373
Product
FileUpEE
Version
5
Title
Setting up FileUpEE and FileUpPE to support files with Unicode characters in the filenames
Problem
Files with special characters in the file name, such as "Brücke.txt", are not being uploaded correctly (e.g. "Brücke.doc").
Solution

FileUpEE and FileUpPE support Unicode characters in file names, but there are several settings that need to be applied in order for FileUp to recognize Unicode character properly.

Server-Side Settings

#1: In the server code behind (e.g. TwoTRUploadWS.aspx.cs), the FileUpEE.CodePage (FileUp.CodePage) property needs to be set to 65001.

(C#)
oFileUp.CodePage = 65001;

#2: On the upload page (e.g. TwoTRUploadWS.uplx), in the page directive, the ASP.NET CodePage setting should be set to 65001:

 <%@ Page Language="c#" Inherits="SoftArtisans.FileUpEESamples.TwoTRUploadWS" src="TwoTRUploadWS.aspx.cs" AutoEventWireup="true" CodePage="65001" %>

Client-side Settings

#3: If XFile is the client-side component being used to make the upload requests, the XFile.CodePage property also needs to be set to 65001 on the upload page (e.g. UploadXFile.Visual.aspx).

(JavaScript)
oXFRequest.CodePage = 65001;

#4: Additionally, on any page(s) that needs to display the file names containing Unicode, in the HTML meta tag on the page, the charset needs to be set to UTF-8:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

Still having issues with special characters after applying these settings?

Cannot download file with "&" in the filename
Cannot download file with "%" in the filename
Created : 3/28/2011 5:27:30 PM (last modified : 3/28/2011 5:27:30 PM)
Rate this article!
 
Comments