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 8191881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:01:34+00:00 2026-06-07T04:01:34+00:00

I have small jquery script which allows me to load external html content by

  • 0

I have small jquery script which allows me to load external html content by clicking to Li element which has ID equal such as part of content in HTML file which is loaded into specific div as result but I have problems with encoding (extended latin characters). Does anyone knows how to solve this problem.

Below is link on non-working JSFiddle because i can`t load contents in JSFiddle from my server but everything is there.

Here is JSFiDDLE:
http://jsfiddle.net/QQz5W/

Part of code which missing from fiddle is actually html file which need to be loaded and which contains text with latin extended characters.

Here is that part:

 <div id="section_first">
        <div class="LeftDiv">
            <h2>Opći uvjeti za montiranje drvenih podnih obloga</h2>
        </div>

            <h3>1. PRIJE POLAGANJA</h3>
            <p><b>1.1. Dozvoljena vlažnost podloge:</b><br>
            - cementna košuljica do 2,0%, cementna košuljica s podnim grijanjem do 1,8%<br>
            - anhidridna košuljica do 0,5%, anhidridna košuljica s podnim grijanjem do 0,3%<br>
            - ploče od iverice 9+4% / 8+2%</p>
    </div>
<div id="section_second">
        <div class="LeftDiv">
            <h2>Title</h2>
        </div>
<p><b>bla bla čćšđž ČĆŽŠĐ</b></p>
    </div>

I`ve tried to add

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="hr" http-equiv="Content-Language" />
</head>

to that html file but it seems that this part is ignored on load.

  • 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-06-07T04:01:36+00:00Added an answer on June 7, 2026 at 4:01 am

    to loading content (try utf-8 or ISO-8859-1):

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

    and

    $.ajax({
        type: "GET",
        url: "test.html #section_first",
    
        /* VERY IMPORTANT */
        contentType: "application/x-www-form-urlencoded; charset=utf-8",// or ISO-8859-1
    
        success: function(data){
               content.html(data);        
               hideLoading();           
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small ajax jquery script which returns some XML for me. Whilst
I have a number of small icons which are draggable via jQuery which i
I have a small jQuery snippet which animates an image caption, based on the
I have written a small jquery application that allows a person to slide a
I've put together a PHP script and small form which allows the user to
I have this small jquery script that does not work if I remove the
I have a small jQuery script: $('.field').blur(function() { $(this).next().children().hide(); }); The children that is
I have a small script on jQuery 1.7.2. Essentially, it displays the thumbnail, and
I have a small dancer application which serves up some HTML (including the javascript
i have a HTML structure which contains many small box, i want when page

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.