Arabic Encoding by Quickbooks Desktop not readable - quickbooks

We have an application that reads from #Quickbooks desktop 2012 - which reads/write arabic - if you set Windows Regional Settings to Arabic. However, when we try to read the data from via Quickbooks SDK its returned as garbage like this "äÈÞ áÇÏÇÑÉ ÇáãäÊÌÚÇÊ ÇáÓíÇÍíÉ"
How to decode the above encoding ? we tried so many decoders but none could revert back the original text which is readable by Quickbooks Desktop UI
Appreciate your help

Related

Using OpenElement to open an Attachment with a URL

Trying to open an attachment with this url and it doesn't work. Any idea why?
https://Blah-apps.com/Development/StrongB.nsf/0/(Attach)/0/B3B9D4480BEF667C852588310078E1AE/$File/golf.pdf!%20&OpenElement
Thanks for any ideas
The attachment was originally created on the web and was an embedded object. I then wrote code to move it to a Rich Text Field and that didn't help. The error I get is
HTTP Web Server: Couldn't find design note
This is from a note that I pulled together for HCL some time ago listing the issues we had with Domino 11 having upgraded from 9. This might help although it is not clear what version you are on.
Broken Download links for LZ1 compressed attachments. - CS0313452
After upgrading to FP5 customers found that they could not download some attachments.
We were able to reproduce this issue 100% and provided HCL with a database.
https://eon.focul.net/eon/apps/moc.nsf/xp_f_mod.xsp?action=openDocument&documentId=67BC79B86B06BAFD802582B30042ACFB FoCul determined that this happens to attachments that are automatically compressed with LZ1 even when the database settings do not enable compression.
+SPR# GRHEBVYNW7 - Server - DAOS - Fixed an issue where after upgrading to 11.x,
running dbmt -c on DAOS enabled databases results in duplicate DAOS objects being stored.
This regression was introduced in 11.0.
The URL syntax affected is the old style https://<>//<>/<database.nsf>>/<>/$FILE/<>.jpg
whereas the newer “XPage”style syntax works fine
We modified our applications to use the XPages style syntax as a good work around.
This is the XPages url style
https://acme.focul.net/apps/moc.nsf/xp_f_mod.xsp?action=openDocument&documentId=67BC79B86B06BAFD802582B30042ACFB
Your use of /0/(Attach)/0 looks wrong. Try this format instead: http://host/Database/View/Document/$File/Filename?OpenElement (source: https://help.hcltechsw.com/dom_designer/9.0.1/appdev/H_ABOUT_URL_COMMANDS_FOR_OPENING_IMAGE_FILES_ATTACHMENTS_AND_OLE_OBJECTS.html)
So in your case:
https://blah-apps.com/Development/StrongB.nsf/0/B3B9D4480BEF667C852588310078E1AE/$File/golf.pdf?OpenElement

Generate pcap files from different OS and browser

I am building a machine learning model for my homework and i can't find the data that i need on the internet so i want to generate pcap files from different OS and browser for example i want to have pcap files from windows using the chrome browser or firefox or edge , pcap files from unix using firefox or chrome , pcap files from Mac using safari or chrome ...
i tried to use wireshark to get my own traffic for exemple i would set my pc with unix or windows on virtuel machine but the problem is that i need a data from diffrent users .
can any one help me with this ?
i looked in the web for the data but i can't find any thing useful .
i tried to generate my own traffic using wireshark but i need to get data from diffrent users .

How to generate a print data file for Honeywell mobile computer to print on a Zebra Bluetooth printer by its utility, BTPrint.exe?

I have a Honeywell Dolphin 6510 mobile computer( hand-held device with Windows Mobile 6.0 OS ).
I want to develop an application which will be run on this mobile computer. The application needs to call a Honeywell device stock command utility, BTPrint.exe, to print on a Zebra Bluetooth printer. The path and filename of a print data file will be the value of 'CommandArgs' of the command, BTPrint.
This print data file needs to include the formatting commands for the printer used.
Here is the way about Honeywell devices printing on Bluetooth printers.
https://honeywellaidc.force.com/supportppr/s/article/How-to-print-a-label-on-a-Bluetooth-printer
Is there any sample code that reads a label format file created by Zebra Designer and then generates a print data file for Zebra printer which will be used by the Honeywell print utility, BTPrint.exe?
Btw, I have tried to download and install Honeywell SDK several times in order to find some of these samples. But every time I failed in installing process. I wrote to its support email address for help, but have not gotten any reply. :-(
Thank you all in advance.
This is my finding so far:
How the Print Demo works
The Printing Demo application is controlled by exm files. To extend the list of available print samples, merge the new files and information into the exm file. The print files hold everything needed to print a demo label or receipt in the printing language understood by the printer.
copy the device file "\Honeywell\PrintDemoMenu.exm" to the PC.
Open PrintDemoMenu.exm with a Text-only editor, for example Windows Notepad, on the PC.
Insert new lines in the following form for every new print file (here csim2receipt.prn):
<Section desc="" flags="128" name="PrintCSIM2receiptBT">
<Key flags="16" name="Name">Intermec (BT,CSIM,2inch) Receipt Print</Key>
<Key flags="16" name="Description">Print 2inch Receipt to an Intermec printer in CSIM</Key>
<Key flags="16" name="CommandLine">$(InstallDir)\Power Tools\btprint.exe</Key>
<Key flags="16" name="CommandArgs">"$(InstallDir)\Demos\csim2receipt.prn"</Key>
Copy the menu exm back to the device.
Start Printer demo on device and check for the new entry.
UPDATE: see BTPrint.exe Sample with Zebra Designer
At last, I found that we can generate these print data files( .prn for Toshiba TEC portable printer ) with utility, BarTender, which is a 3rd-party tool some like Zebra Designer.
And, I actually printed out on a TEC printer with the command "BTPrint.exe \Temp\mytec.prn" running on my Honeywell mobile computer.
In fact, we also can generate a print data file for Zebra printer with utility, Zebra Designer.
For you all reference.

Why does the content type of an uploaded excel file changes to application/octet-stream on mac in ASP MVC 4.0?

I'm having a little problem! I'm designing an asp mvc 4 application for a client which should import and process an excel file. To process the excel file I use the C# version of the NPOI framework.
My client uses mac and I use windows.
Everything works fine on windows but when my client tries it on his mac, it does not work anymore. After doing some searching I found that the content type of the uploaded file was "application/octet-stream" when uploading from mac (opposed to "application/vnd.ms-excel" when uploading from windows).
We use the exact same file, the only difference is that my clients file is saved on a mac and mine on a windows pc (we both got the same file from google docs).
It became weirder when he was experiencing the same error when he tried it on a windows pc with the file which was saved on mac.
Does anybody have an idea on what is going on? Or how I can get my NPOI processing working when the content type is "application/octet-stream"?
The browser can freely choose what content type to send. It could even send you "fluffy/bytes" if it wanted and you can't do anything about it. It appears that Safari on Mac does not know what an Excel file is so it does not send the Excel content type.
What is NPOI? Why does your application require that content type to be set? You can recognize that this is an Excel file by looking at the file extension that was posted. If neither content type not extension were posted (entirely possible) you can only guess by the file contents.

How Can I Automatically Execute A Link In Internet Explorer

I am trying to create an application to print documents over the web. I have created my document, and made a web page with a meta refresh tag, along the lines of this:
<meta http-equiv="refresh" content="3;http://example.com/download.epl2" />
I specify that the document has a content-type of application/x-epl2, and I have associated .epl2 files on my computer with a program that silently sends them to the printer.
I have put the website into my trusted sites zone.
Currently Internet Explorer pops up the "Open, Save, Cancel" dialog box with no option to automatically open the file.
Is there a setting in IE6/7/8 that I can use to have IE just open the file without prompting?
EDIT
The actual content of the file will differ based on the job, but essentially it is text that follows the Eltron Programming Language.
EDIT
I have accomplished this in both Chrome and Firefox by choosing "Automatically Open Files Of This Type From Now On"
EDIT
The machines this program will be used on will effectively be kiosks that are limited to only accessing my website from their web browsers, so I'm not worried about rogue websites sending documents to my printers.
EDIT
I am using PHP to generate the documents and HTML on the server side, though I expect the solution to be language agnostic.
I would expect that not to be possible, because then you could stumble onto a site that automatically loads and prints a 5000 page document or something, which would not be good.
If you always had a secret desire to develop a custom URL protocol (I know I do), this might be a good excuse to do it. ;-)
http://msdn.microsoft.com/en-us/library/aa767914%28VS.85%29.aspx
There are 1-2 prompts when opening such a link for the first time in IE, but you can choose to automatically open them after that.
I would use javascript to make this happen.
Javascript Window Open
EDIT
Since you have control of the windows box you could use an automate script process to interact with the print window.
autoit3: ControlClick
Write a small utility program that does nothing but send the file passed to it on the command-line to the default system printer.
Then, edit the registry under HKEY_CLASSES_ROOT to associate this program with the .epl2 filetype.
I don't have time to investigate it for You, but there were lots of exploits that could be helpful. Using ie6 without certain fixes seems helpful.
Also there should be an option called "Automatic prompting for file downloads". I use Linux nowadays so I can't chceck if it helps. I found it in some docs.
I'm on a Mac at the moment, but if this is possible in IE I would imagine this page holds the answer to it (or at least hints at it) http://support.microsoft.com/kb/883255
I believe what you're looking for is a setting in Windows, not IE:
Microsoft Support: Not Prompted to Specify Download Folder for File
Try using an older version of IE. Security was looser in the older versions and since it's a non-issue, this could be the quickest solution.

Resources