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

  • Home
  • SEARCH
  • 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 1051577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:57:23+00:00 2026-05-16T16:57:23+00:00

A have a string %c3%ad which decoded with UTF-8 is í , but decoded

  • 0

A have a string %c3%ad which decoded with UTF-8 is í, but decoded with ASCII is Ã.

I need to decode it using the UTF-8 encoding, how can I do that?

Here is a select of the value and what it should be…

SELECT
('%c3%81') as 'Á (81 = 129)',
('%c3%89') as 'É (89 = 137)',
('%c3%8d') as 'Í (8d = 141)',
('%c3%93') as 'Ó (93 = 147)',
('%c3%9a') as 'Ú (9a = 154)'


SELECT
('%c3%a1') as 'á (a1 = 161)',
('%c3%a9') as 'é (a9 = 169)',
('%c3%ad') as 'í (ad = 173)',
('%c3%b3') as 'ó (b3 = 179)',
('%c3%ba') as 'ú (ba = 186)'
  • 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. Editorial Team
    Editorial Team
    2026-05-16T16:57:23+00:00Added an answer on May 16, 2026 at 4:57 pm

    This functions seems to do the job.

    CREATE FUNCTION [dbo].[UrlDecodeUTF8](@URL varchar(3072))
    RETURNS varchar(3072)
    AS
    BEGIN 
        DECLARE @Position INT,
            @Base CHAR(16),
            @Code INT,
            @Pattern CHAR(21)
    
        SELECT @URL = REPLACE(@URL, '%c3', '')
    
        SELECT  @Base = '0123456789abcdef',
            @Pattern = '%[%][0-9a-f][0-9a-f]%',
            @Position = PATINDEX(@Pattern, @URL)
    
        WHILE @Position > 0
            SELECT @Code = Cast(CONVERT(varbinary(4), '0x' + SUBSTRING(@URL, @Position + 1, 2), 1) As int),
                @URL = STUFF(@URL, @Position, 3, NCHAR(@Code + 64)),
                @Position = PATINDEX(@Pattern, @URL)
    
        RETURN REPLACE(@URL, '+', ' ')
    
    END
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string which I need to verify if it's a Country code.
I have a HTML string in ISO-8859-1 encoding. I need to pass this string
I have one string which is base 32 bit decoded now I want to
I have a string cityName which I decoded into bytes as follows: byte[] cityBytes
I have a simple program which tries to decode an encoded URL. But for
I have a string which is of about 1mb size. The requirement is to
I have a string which is in the following format, When there is a
I have a string which varies everytime it is input as it is a
I have a string which is a representation of a clojure map. Is there
I have a string which typically is in the format : 0xFF . I'll

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.