This is a migrated thread and some comments may be shown as answers.

PDFExport Filename French Accents Encoded

1 Answer 144 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Remi
Top achievements
Rank 2
Remi asked on 11 Nov 2009, 07:38 PM
Hi,

I have a radgrid that I use the PDFExport() to export the data to a PDF. Great!

I set a filename with French accents, example VÀèn (Changed to this on export - VÉ - when running ExportToPdf()).

The issue I have is that my application sets the filename correctly, but when the pdfexport method runs it encodes the filename, special characters, making the filename wrong when a user saves the pdf. We set the filename to be the name of the grid, which makes sense, so it's important that the pdfexport respects the french accents, especially since our clients are sensitive to having proper accents for French.

I'm not sure if there is a solution or this is something to look into for a new release. Has this been addressed?

A simple test is to run the ExportToPdf() on a grid and assign a filename with some french accents. for example.

MyGrid.ExportSettings.FileName = "VÀèn";
MyGrid.MasterTableView.ExportToPdf();

Thanks very much for assistance and consideration -- its really appreciated.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 17 Nov 2009, 02:16 PM
Hello Remi,

I suppose you are using Internet Explorer. If that is so, please try the following approach:
RadGrid1.ExportSettings.FileName = HttpUtility.UrlEncode("TEXT_TO_BE_ENCODED", System.Text.Encoding.UTF8);

Please let me know whether this helps.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Remi
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Share this question
or