JasperReport replaces russian words with symbols ___ - jasper-reports

i have issue with uploading a report to excel from jasper . My report has russian letters in the title and when i download it these letters are replaced by _______ ( look at the screenshot ) .
This happens with all reports which has russian symbols . What can i do to fix this problem ?

Okay , i got the solution . You need to replace your resource-id to eng symbols. But resource-id READ ONLY. You can connect to your jasper database and write this select:
select * from jiresource
you need "name" column. It's varchar(200) by default, but you can increase it as much as you wish. Then you need to find your report name and change it with english symbols. update table and enjoy .
Also if you dont wanna use database, you can create new JRMX file with right name/resource id , but its even more labor intensive .

Related

Is there any way to prevent or detect char(0) from texts?

In some occasions, specially when copy-pasting, we end up having some text fields with a character 0 (nul) at the end of a string.
It doesn't show in any way when you display the data, but you do detect it when you export it.
We've tried to (at least) detect it by using the "Position" function.
However Position(text_field, char(0), 1, 1) won't find this char (it does return 0, even if the character is there).
I guess this is some kind of bug from FileMaker, but I'd like to know if anyone has found a way to circumvent it...
More info and a database sample at: https://community.claris.com/en/s/question/0D53w00005wrUMMCA2/character-0-0x0-in-text-fields
Unfortunately, the result of Char(0) is an empty string, not the expected control character.
You can generate the null character in a number of ways:
HexDecode ( "00" )
Base64Decode ( "AA==" )
ExecuteSQL ( "SELECT DISTINCT CHR(0) FROM SomeTable" ; "" ; "" )
or paste it into a global field and get it from there.
Once you have the character, it's easy to detect it or just substitute it out.
You may want to bypass the entire issue by allowing only printable characters - see, for example: https://www.briandunning.com/cf/1291
I run into this problem quite frequently when users try to copy-paste text from office programs into FileMaker fields on windows (my guess is that FileMaker for some reason can't handle Microsoft Office line endings properly).
The most efficient solution I found is to use auto enter calculation or script with Filter() function, in order to remove any unwanted characters.
Alterntively if you have access to plug-ins you can try using the MBS ("Text.RemoveControlCharacters") function from Monkeybread FileMaker plug-in which is uspposed to remove all characters with code 32 or lower.

Pentaho spoon search and replace especial character in rows

I have a csv file with mime type US-ASCII and one column in the dataset look like this:
id
V_name
210001
cha?ne des Puys
210030
M?los
213004
G?ll?
213021
S?phan
221110
Afd?ra
And so on.
I would like to change those characters to:
id
V_name
210001
chaine des Puys
210030
Milos
213004
Gollu
213021
Suphan
221110
Afdera
The thing is that there are 95 rows of this kind, how can I search and replace those rows?
I using the suite PDI spoon.
Thanks in advance.
As #Iłya Bursov has stated, the source file you are reading doesn't provide the correct characters, it is providing the ? in the source, so if you want to correct it, you'll have to do it manually.
I don't think it is worth it, unless you know you are going to get always the same set of V_name over time and different files. In that case you could create a file to correlate the V_name in your source with the ? characters to a V_name_corrected with the correct display for the characters. This seems to be an exercise, so I would let the names as they are. In real life, I would contact the provider of the file with the incorrect character set to tell them that they need to correct the generation of the file to provide the correct characters in the file.

What do I do wrong when I use database preview via dexplore?

I have some strange errors when I try to access my MS Access DB via MATLAB. Some hints:
The data preview to the tutorial.mdb (shipped with MATLAB) works very well via dexplore - I can see all the tables and I can import the data.
The data preview to my own DB works on another system where e.g the language settings differ. -> screenshot 1 This is how the DB preview looks on the other system. Note that table and column names are framed with the ` character. At first the preview resulted in an error too for one of the tables (0433_Slices) - when I renamed it by framing the name with the ' character inside MS Access, I could enforce the table name to be recognized as a string in MATLAB and now this table is importable too.
In my system, the preview does not work and gives error messages like "Syntax error in query message" or "Syntax error in FROM clause" "Incomplete query clause" -> screenshot 2 You see here one of the possible error messages, and that neither table nor column names are framed with the ` character. I tried to enforce the recognition of table names by using " characters or ' characters, but that did not work!
Comparing my system to the other system, the most prominent difference is that table names and column names are not recognized as strings (= they are framed with ' characters), and I think this results in the mentioned error messages. Can I fix this somehow, or am I on totally on the wrong track?
Screenshot 1: http://i.imgur.com/b0Ja4aR.png
Screenshot 2: http://i.imgur.com/dDyvjfM.png
edited Jan 26 at 16:05
asked Jan 26 at 15:59
R.S.
11
To anybody who will look for a solution for this freak problem in the distant future and finds this thread: neither table names nor column names are allowed to contain a "-" or spaces. "_" is fine though.
Just rename everything using only roman alphabet characters, numbers and "_" and it will work!
Also, dont start with numbers like "032_xyz". It will work if you rename it to "xyz".

format a word document

I have written the index of my report in word document but the page numbers are not properly formatted, I even tried to use table for it but it is still not working .
TABLE OF CONTENTS
Chapter: 1 Introduction…………………………………………………………….…....……..1
1.1 Project Summary……………………………………………………….......………..2
1.2 Objective……………………………………………………….……….…….….........2
1.3 Scope…………………………………………………….…………………...........…...2
1.4 Technology and literature……………………………….……………………..2
like above i ve my index. In word document page numbers are not arranged in a line.kindly help me.
Try to use instead of Whitespace button a Tab button.
And you may add a points "." at well. And numbers will be in true places

is there a way to remove rtf from a database memo field within a formula in crystal reports version 11.5.10

I have a database memo field stored as rich text format ( rtf). I can drop it in a report and set the format of the field as rtf within crystal reports version 11.5.10 and see the text without the rtf control characters. However, I want to construct a crystal reports formula/function to process the ascii text, so is there a way to programmatically within crystal report to strip the rtf control characters from the memo field so I can work with only the ascii characters ?
I could not find such a function within CR or mention of a solution to this problem by googling.
Cheers,
You could try looking at this.
http://tech.groups.yahoo.com/group/BillQuick/message/937?
I found it and used it to change/override RTF font settings to print large text for easier reading. It could probably be modified to strip to ASCII.
Cheers,