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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:34:09+00:00 2026-06-14T11:34:09+00:00

I write a simple frontend for pretty old reporting system, which uses Crystal Reports

  • 0

I write a simple frontend for pretty old reporting system, which uses Crystal Reports 8 Web Component Server.
And I need to make a ‘POST’ request to this Web Component. When I’m making request from page encoded using standard UTF-8, all form data is passed in UTF-8 too. And that’s the problem, because CR8 Web Component Server doesn’t understand UTF-8 (or does it and I’m wrong?).
I’ve tried to put accept-charset="ISO-8859-5" and accept-charset="windows-1251" in parameters and had no luck with it.

Here’s more info, that can be usefull:

  • This frontend will be working on Windows Server 2003 with IIS6,
  • Only suitable browser is IE, because CR8 Web Component Server uses ActiveX component. (There’s also a java plugin, but for some reason it doesn’t work at all).

So I need flask (jinja2) to render templates using ‘windows-1251’ encoding, because parameter names and values can contain cyrillic characters. It there any way I can achieve this?

  • 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-14T11:34:10+00:00Added an answer on June 14, 2026 at 11:34 am

    I’ve found a simple (and maybe even stupid) solution.
    Instead of return render_template('template.html', params**), I’m creating request manually and setting request data and headers to what i need.

    And it looks like that:

    r = Response()
        r.headers['Content-Type'] = 'text/html; charset=windows-1251'
        r.data = render_template('template.html', param1 = data).encode('cp1251')
    

    Looks like a dirty hack, but it works.

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

Sidebar

Related Questions

As a part of our application I need to write simple workflow system which
I'm trying to write simple proxy server for some purpose. In it I use
I want to write simple script to copy/backup directory then remove on server startup.
I'm writing a pretty simple database application, which I want to be locally stored
I'm trying to write simple graphic editor using PyGObject and python 3. I need
i'm trying to write simple tcp\ip client-server. here is server code: internal class Program
I'm writing a relatively simple web application made of three tiers: Frontend: Very thin
I'm trying to write a simple GUI front end for Plurk using pyplurk. I
Lets write simple console application (debug mode): static void Main(string[] args) { Process p
Lets write simple console application: static void Main(string[] args) { IList<Thread> threads = new

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.