Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Problem with downloading arabic named file..

Problem with downloading arabic named file..

Scheduled Pinned Locked Moved ASP.NET
sysadminhelpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    khurram rathor
    wrote on last edited by
    #1

    Hello, I'm working on some application. I'm getting file bytes by calling WebService Method and saving it on the server and then send it to client for download. My Code is Downloading the file perfectly on client PC, but the problem is with arabic named file, that its name shows Garbage Characters in SaveFile Dialog Box before downloading. I'm sending the file to the client PC like this.. Response.Clear() Response.ContentType = "APPLICATION/OCTET-STREAM" Response.AddHeader("Content-Disposition", "attachment; filename=" & ArabicFileName.Trim() & "." & FileType.Trim() & "; size = " & Bytes.Length.ToString()) Response.CharSet = "windows-1256" Response.AddHeader("Content-Length", Bytes.Length) Response.BinaryWrite(Bytes) Response.Flush() After that, Explorer displays Save Dialog box. But it corrupts Arabic FileName and if i will save this file, this will be downloaded perfectly but with garbage charaters in filename. Can anyone tell me that what is the problem with arabic named files, though English named files are fine. My window also support Arabic. Thanks. khurram rathor khurram rathor

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups