Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 150927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:22:06+00:00 2026-05-11T09:22:06+00:00

I am currently having troubles figuring out how to handle a filepath to be

  • 0

I am currently having troubles figuring out how to handle a filepath to be (dynamicly) passed out to a HyperLink control’s NavigateUrl property.

Let’s say that I’m trying to refer to a file named jäynä.txt at the root of C:.
Passing 'file:///C:/jäynä.txt' result to a link to file:///C:/jäynä.txt, as does HttpUtility.UrlPathEncode('file:///C:/jäynä.txt').

Replacing the ä**s with **%E4, which gives the string 'file:///C:/j%E4yn%E4.txt', does give a working link to file:///C:/jäynä.txt, but I have not been able to find a way to make the replacement without defining it myself. With Replace('ä', '%E4'), for example.

Is there a way to automaticly handle the filepath string so that the HyperLink would display it correctly, without manualy listing what characters to replace in the string?

Additional Note:
There may be a way to work around this by spesifying the character encoding in which the page is rendered, because debugging shows that the HyperLink at least saves the string 'file:///C:/jäynä.txt' unchanged, but somehow mangles it around the time of rendering.
However, this seems only be the case in rendering of the NavigateUrl because other components as well as HyperLink‘s Text-property are all quite capable of rendering the character ä unchanged.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:22:07+00:00Added an answer on May 11, 2026 at 9:22 am

    This is due to how the browser starts to interpret the path, typically individuals will avoid using characters such as that in the urls of pages.

    In your case, I believe you have struck upon the best case scenario, as I am not aware of any way to change the behavior of HttpUtility and/or the NavigateUrl property. At least not without creating a custom control for it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having some troubles figuring out if its possible to run a GWT Application
I'm having trouble figuring out why my web service is not working correctly when
I am having trouble figuring out the if statement code for changing the color
I'm having trouble figuring out how to programmatically setting the Stroke of my arrow.
I'm having trouble figuring out how to set indexers in C# with Moq. The
My company is having trouble figuring out the best way to manage our builds,
(vb.net/c#/etc) I am having trouble figuring out how to do a bit of deserialization
I'm having trouble figuring out how to structure Perl modules in an object oriented
I am having trouble figuring out the best way to set up animation with
I'm having trouble figuring out the best way to store what information my users

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.