Re: EXF Photo Information
Railo 4 is now using Sanselan library http://commons.apache.org/proper/commons-imaging//index.html >From the Railo team > With Railo 4 we decided to switch the library used to handle images, but > the lib is only halfway used ATM On 28 February 2013 14:04, Justin Scott wrote: > > > Not looking to spend on a CF upgrade over one site :) > > I'd normally say there's always Railo it cost is an issue, but it > looks like Railo has implemented imageGetEXIFMetaData() but not > imageGetIPTCMetaData() (it's not listed in their documentation, > haven't actually tested code on Railo to check). Ah well! > > > -Justin > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354735 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: EXF Photo Information
> Not looking to spend on a CF upgrade over one site :) I'd normally say there's always Railo it cost is an issue, but it looks like Railo has implemented imageGetEXIFMetaData() but not imageGetIPTCMetaData() (it's not listed in their documentation, haven't actually tested code on Railo to check). Ah well! -Justin ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354734 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: EXF Photo Information
On 2/28/2013 10:57 AM, Jenny Gavin-Wear wrote: > Would it be very easy to create a cf tag from this that would take an image > and output the exif data, etc? yes i guess it would be very easy. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354733 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: EXF Photo Information
Hi Justin, Not looking to spend on a CF upgrade over one site :) Upgrades are far too expensive, imo. Thanks, Jenny -Original Message- From: Justin Scott [mailto:leviat...@darktech.org] Sent: 27 February 2013 22:40 To: cf-talk Subject: Re: EXF Photo Information > It's great to see this in CF8, but unfortunately it doesn't provide > all the metadata I would need, > > If you have ever used Photoshop or Lightroom, you can edit the File Info. > This means the photog can add a lot of information to the image, such > as Description, keywords, copyright, etc. When the file is uploaded > to Flickr, for example, this information is read and it saves any need > to rekey. It means where ever the image lands up, this information doesn't get detached. In that case you would use imageGetIPTCMetaData() instead (on CF8 and above, of course). -Justin ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354732 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: EXF Photo Information
Hi Russ, Imagemagick is great, I've been using it for many years. Unfortunately all it does in relation to exif is use it to rotate an image correctly. Many thanks, Jenny -Original Message- From: Russ Michaels [mailto:r...@michaels.me.uk] Sent: 27 February 2013 22:05 To: cf-talk Subject: RE: EXF Photo Information Try imagemagick, this does a lot more than cfimage and uses java library Regards Russ Michaels www.michaels.me.uk www.cfmldeveloper.com - Free CFML hosting for developers www.cfsearch.com - CF search engine On Feb 27, 2013 8:39 PM, "Jenny Gavin-Wear" wrote: > > Hi Paul, > > My skills are purely in CF, I'm not a programmer as such. Is there a > simple way I can go about using this java lib, please? > > I can use a bit of Javascript, would this be enough? > > Many thanks, > > Jenny > > -Original Message- > From: Paul Hastings [mailto:p...@sustainablegis.com] > Sent: 25 February 2013 06:45 > To: cf-talk > Subject: Re: EXF Photo Information > > > On 2/25/2013 9:34 AM, Jenny Gavin-Wear wrote: > > I am still using CF7 and I'm about to put together a site for a > > photographer. I don't really want to spend a fortune upgrading CF, > > so I am wondering if there is anything I can use to read in EXIF > information? > > even if you upgraded not sure you'd get a whole lot of EXIF data out > of imageInfo anyway beyond the very basics (height, width, etc.). if > you don't mind dipping down into java & can add a java lib to your cf > classpath that's probably your best bet. maybe: > > > http://drewnoakes.com/code/exif/ > > > > > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354731 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: EXF Photo Information
Hi Paul, Many thanks indeed. I can see the general idea of your code, but it is way beyond me. Would it be very easy to create a cf tag from this that would take an image and output the exif data, etc? Thanks again, Jenny -Original Message- From: Paul Hastings [mailto:p...@sustainablegis.com] Sent: 28 February 2013 02:27 To: cf-talk Subject: Re: EXF Photo Information oops, that code was for cf10 & used some undocumented stuff. this might work better for cf7. // path to image on server path="c:\cyclingTrips\khlong13\coffinService.jpg"; // lib wants java IO file so... imgFile=createObject("java","java.io.File").init(path); metadataReader=createObject("java","com.drew.imaging.ImageMetadataReader"); metadata=metadataReader.readMetadata(imgFile); exifDirs=metadata.getDirectories(); for (i=1; i LTE arrayLen(exifDirs); i++) { writeoutput("Dir: #exifDirs[i].getName()#"); tags=exifDirs[i].getTags(); for (j=1; j LTE arrayLen(tags); j++) { writeoutput("#tags[j].getTagName()# :: #tags[j].getDescription()# "); } writeoutput(""); } ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354730 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Localization , French Accents...
Just a note on this: the tag used in this way simply tells the CF compiler to treat *that file* as UTF-8 when it's compiled. IE: if the file itself has UTF-8-encoded text within it, the compiler will respect that when the CFML is compiled. It has no bearing at all on displaying or reading UTF-8 encoded data (which are only relevant at runtime, not compile time). -- Adam On 27 February 2013 18:52, Akos Fortagh wrote: > > Not sure if this helps and depends what you're trying to do with the text, > if you want to output them to a page, putting this at the top of the .cfm > page should help. > > > > I had problems displaying foreign characters until I included the above on > the pages. > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354729 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: EXF Photo Information
oops, that code was for cf10 & used some undocumented stuff. this might work better for cf7. // path to image on server path="c:\cyclingTrips\khlong13\coffinService.jpg"; // lib wants java IO file so... imgFile=createObject("java","java.io.File").init(path); metadataReader=createObject("java","com.drew.imaging.ImageMetadataReader"); metadata=metadataReader.readMetadata(imgFile); exifDirs=metadata.getDirectories(); for (i=1; i LTE arrayLen(exifDirs); i++) { writeoutput("Dir: #exifDirs[i].getName()#"); tags=exifDirs[i].getTags(); for (j=1; j LTE arrayLen(tags); j++) { writeoutput("#tags[j].getTagName()# :: #tags[j].getDescription()# "); } writeoutput(""); } ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354728 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: EXF Photo Information
On 2/27/2013 9:51 PM, Jenny Gavin-Wear wrote: > My skills are purely in CF, I'm not a programmer as such. Is there a simple "not a programmer"? so what does that make the rest of us? chopped liver? > way I can go about using this java lib, please? 1) download the jar file 2) stick it on the cf classpath, i *think* its {cf_installation}/lib in cf7. 3) might have to stop/restart the cf server service 4) image metadata consists of "directories" containing "tags" so something like the following will extract those tags per dir: // path to image on server path="c:\cyclingTrips\khlong13\coffinService.jpg"; // lib wants java IO file so... imgFile=createObject("java","java.io.File").init(path); metadataReader=createObject("java","com.drew.imaging.ImageMetadataReader"); metadata=metadataReader.readMetadata(imgFile); exifDirs=metadata.getDirectories(); for (i=1; i <= exifDirs.size(); i++) { writeoutput("Dir: #exifDirs[i].getName()#"); tags=exifDirs[i].getTags(); for (j=1; j <= tags.size(); j++) { writeoutput("#tags[j].getTagName()# :: #tags[j].getDescription()# "); } writeoutput(""); } if you can't do step 2, have a look at mark mandel's excellent javaLoader project. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354727 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Localization , French Accents...
On 2/28/2013 3:05 AM, Brook Davies wrote: > > Sorry, Unicode/utf-8 are the same thing...my mistake.. they're not the "same thing". unicode is a *standard* (the unicode consortium produces a book "the unicode standard"). utf-8 (UCS Transformation Format 8 bit) is one *encoding* implementing that standard, there are others. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354726 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: EXF Photo Information
> It's great to see this in CF8, but unfortunately it doesn't provide all the > metadata I would need, > > If you have ever used Photoshop or Lightroom, you can edit the File Info. > This means the photog can add a lot of information to the image, such as > Description, keywords, copyright, etc. When the file is uploaded to Flickr, > for example, this information is read and it saves any need to rekey. It > means where ever the image lands up, this information doesn't get detached. In that case you would use imageGetIPTCMetaData() instead (on CF8 and above, of course). -Justin ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354725 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Decrypting a string which was encrypted by C# doesn't handle extended ascii
Thanks Mark and Leigh. Leigh, that did the trick. Cheers Bert On 27 February 2013 14:48, Leigh wrote: > > > a string which was originally encrypted in C#. It works > > Oh wait...it looks like an encoding difference. CF's encrypt/decrypt > functions always use UTF-8. Based on the results, those custom c# methods > are using Encoding.Unicode, which is different. You need to use the same > encoding ie UTF-16LE in CF. > > http://pastebin.com/fZtdeQ2e > > > -Leigh > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354724 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: EXF Photo Information
Try imagemagick, this does a lot more than cfimage and uses java library Regards Russ Michaels www.michaels.me.uk www.cfmldeveloper.com - Free CFML hosting for developers www.cfsearch.com - CF search engine On Feb 27, 2013 8:39 PM, "Jenny Gavin-Wear" wrote: > > Hi Paul, > > My skills are purely in CF, I'm not a programmer as such. Is there a simple > way I can go about using this java lib, please? > > I can use a bit of Javascript, would this be enough? > > Many thanks, > > Jenny > > -Original Message- > From: Paul Hastings [mailto:p...@sustainablegis.com] > Sent: 25 February 2013 06:45 > To: cf-talk > Subject: Re: EXF Photo Information > > > On 2/25/2013 9:34 AM, Jenny Gavin-Wear wrote: > > I am still using CF7 and I'm about to put together a site for a > > photographer. I don't really want to spend a fortune upgrading CF, so > > I am wondering if there is anything I can use to read in EXIF > information? > > even if you upgraded not sure you'd get a whole lot of EXIF data out of > imageInfo anyway beyond the very basics (height, width, etc.). if you don't > mind dipping down into java & can add a java lib to your cf classpath > that's > probably your best bet. maybe: > > > http://drewnoakes.com/code/exif/ > > > > > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354723 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Localization , French Accents...
Any time. Glad it's worked out. On 2/27/13 3:56 PM, "Brook Davies" wrote: > >Bobby, thanks for the notepad+ idea - it was the encoding on the source >file > >-Original Message- >From: Bobby [mailto:bo...@acoderslife.com] >Sent: February-27-13 12:05 PM >To: cf-talk >Subject: Re: Localization , French Accents... > > >UTF-8 should do it. > >On 2/27/13 3:00 PM, "Brook Davies" wrote: > >> >>Should I be saving it in Unicode or UTF-8? >> >>-Original Message- >>From: Bobby [mailto:bo...@acoderslife.com] >>Sent: February-27-13 11:01 AM >>To: cf-talk >>Subject: Re: Localization , French Accents... >> >> >>My first guess is that it is happening when the file is read in. Was it >>saved as unicode? I think notepad lets you do that. If not, notepad++ >>does. >> >> >>On 2/27/13 12:52 PM, "Brook Davies" wrote: >> >>> >>>I am trying to read in a number of text files that contain >>>translations (using French in this example) and store them in my >>>applications app scope. >>>The file I am reading in looks like this: >>>http://screencast.com/t/DZTv3iVrbyo >>> >>>When I dump the results from reading in the file, or try to use them >>>in output, the accents get munged: >>>http://screencast.com/t/aoRcLWWHn >>> >>>I have tried everything I can think of to get this to work and >>>everything has failed. I have tried manually setting the charset on >>>the CFFILE tag and that has not helped. I tried using UTF-8, and >>>WINDOWS-1255. >>> >>>Since I have numerous language files I have even tried implementing >>>this java class org.mozilla.universalchardet.UniversalDetector that >>>detects the encoding of a file, and then using the detected encoding >>>when reading in the translation files. But no matter what I do, the >>>encoding is not preserved. >>>Note, this library tells me my French files are "WINDOWS-1255"./ >>> >>>Does anyone have any suggestions on how I can handle this? >>> >>>Brook >>> >>> >>> >>> >> >> >> >> > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354722 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Localization , French Accents...
Bobby, thanks for the notepad+ idea - it was the encoding on the source file -Original Message- From: Bobby [mailto:bo...@acoderslife.com] Sent: February-27-13 12:05 PM To: cf-talk Subject: Re: Localization , French Accents... UTF-8 should do it. On 2/27/13 3:00 PM, "Brook Davies" wrote: > >Should I be saving it in Unicode or UTF-8? > >-Original Message- >From: Bobby [mailto:bo...@acoderslife.com] >Sent: February-27-13 11:01 AM >To: cf-talk >Subject: Re: Localization , French Accents... > > >My first guess is that it is happening when the file is read in. Was it >saved as unicode? I think notepad lets you do that. If not, notepad++ >does. > > >On 2/27/13 12:52 PM, "Brook Davies" wrote: > >> >>I am trying to read in a number of text files that contain >>translations (using French in this example) and store them in my >>applications app scope. >>The file I am reading in looks like this: >>http://screencast.com/t/DZTv3iVrbyo >> >>When I dump the results from reading in the file, or try to use them >>in output, the accents get munged: >>http://screencast.com/t/aoRcLWWHn >> >>I have tried everything I can think of to get this to work and >>everything has failed. I have tried manually setting the charset on >>the CFFILE tag and that has not helped. I tried using UTF-8, and >>WINDOWS-1255. >> >>Since I have numerous language files I have even tried implementing >>this java class org.mozilla.universalchardet.UniversalDetector that >>detects the encoding of a file, and then using the detected encoding >>when reading in the translation files. But no matter what I do, the >>encoding is not preserved. >>Note, this library tells me my French files are "WINDOWS-1255"./ >> >>Does anyone have any suggestions on how I can handle this? >> >>Brook >> >> >> >> > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354721 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Decrypting a string which was encrypted by C# doesn't handle extended ascii
> a string which was originally encrypted in C#. It works Oh wait...it looks like an encoding difference. CF's encrypt/decrypt functions always use UTF-8. Based on the results, those custom c# methods are using Encoding.Unicode, which is different. You need to use the same encoding ie UTF-16LE in CF. http://pastebin.com/fZtdeQ2e -Leigh ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354720 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: EXF Photo Information
Hi Paul, My skills are purely in CF, I'm not a programmer as such. Is there a simple way I can go about using this java lib, please? I can use a bit of Javascript, would this be enough? Many thanks, Jenny -Original Message- From: Paul Hastings [mailto:p...@sustainablegis.com] Sent: 25 February 2013 06:45 To: cf-talk Subject: Re: EXF Photo Information On 2/25/2013 9:34 AM, Jenny Gavin-Wear wrote: > I am still using CF7 and I'm about to put together a site for a > photographer. I don't really want to spend a fortune upgrading CF, so > I am wondering if there is anything I can use to read in EXIF information? even if you upgraded not sure you'd get a whole lot of EXIF data out of imageInfo anyway beyond the very basics (height, width, etc.). if you don't mind dipping down into java & can add a java lib to your cf classpath that's probably your best bet. maybe: http://drewnoakes.com/code/exif/ ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354719 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: EXF Photo Information
Hi Justin, It's great to see this in CF8, but unfortunately it doesn't provide all the metadata I would need, If you have ever used Photoshop or Lightroom, you can edit the File Info. This means the photog can add a lot of information to the image, such as Description, keywords, copyright, etc. When the file is uploaded to Flickr, for example, this information is read and it saves any need to rekey. It means where ever the image lands up, this information doesn't get detached. Many thanks, Jenny -Original Message- From: Justin Scott [mailto:leviat...@darktech.org] Sent: 26 February 2013 00:06 To: cf-talk Subject: Re: EXF Photo Information > even if you upgraded not sure you'd get a whole lot of EXIF data out > of imageInfo anyway beyond the very basics (height, width, etc.). if > you don't mind dipping down into java & can add a java lib to your cf > classpath that's probably your best bet. maybe: > http://drewnoakes.com/code/exif/ ColdFusion 8 (sorry Jenny, this won't help you on CF7) introduced a function specifically to extract EXIF data called ImageGetEXIFMetaData(). You basically read in a JPEG image and pass it to the function and it returns a structure of whatever it can extract. Pete Freitag has a blog post with an example at http://www.petefreitag.com/item/657.cfm. -Justin ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354718 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Decrypting a string which was encrypted by C# doesn't handle extended ascii
> This is the code that was used for the encryption: What is the code for RijndaelDecrypt/RijndaelEncrypt? -Leigh ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354717 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Localization , French Accents...
Sorry, Unicode/utf-8 are the same thing...my mistake.. -Original Message- From: Bobby [mailto:bo...@acoderslife.com] Sent: February-27-13 11:01 AM To: cf-talk Subject: Re: Localization , French Accents... My first guess is that it is happening when the file is read in. Was it saved as unicode? I think notepad lets you do that. If not, notepad++ does. On 2/27/13 12:52 PM, "Brook Davies" wrote: > >I am trying to read in a number of text files that contain translations >(using French in this example) and store them in my applications app >scope. >The file I am reading in looks like this: >http://screencast.com/t/DZTv3iVrbyo > >When I dump the results from reading in the file, or try to use them in >output, the accents get munged: >http://screencast.com/t/aoRcLWWHn > >I have tried everything I can think of to get this to work and >everything has failed. I have tried manually setting the charset on the >CFFILE tag and that has not helped. I tried using UTF-8, and >WINDOWS-1255. > >Since I have numerous language files I have even tried implementing >this java class org.mozilla.universalchardet.UniversalDetector that >detects the encoding of a file, and then using the detected encoding >when reading in the translation files. But no matter what I do, the >encoding is not preserved. >Note, this library tells me my French files are "WINDOWS-1255"./ > >Does anyone have any suggestions on how I can handle this? > >Brook > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354716 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Localization , French Accents...
UTF-8 should do it. On 2/27/13 3:00 PM, "Brook Davies" wrote: > >Should I be saving it in Unicode or UTF-8? > >-Original Message- >From: Bobby [mailto:bo...@acoderslife.com] >Sent: February-27-13 11:01 AM >To: cf-talk >Subject: Re: Localization , French Accents... > > >My first guess is that it is happening when the file is read in. Was it >saved as unicode? I think notepad lets you do that. If not, notepad++ >does. > > >On 2/27/13 12:52 PM, "Brook Davies" wrote: > >> >>I am trying to read in a number of text files that contain translations >>(using French in this example) and store them in my applications app >>scope. >>The file I am reading in looks like this: >>http://screencast.com/t/DZTv3iVrbyo >> >>When I dump the results from reading in the file, or try to use them in >>output, the accents get munged: >>http://screencast.com/t/aoRcLWWHn >> >>I have tried everything I can think of to get this to work and >>everything has failed. I have tried manually setting the charset on the >>CFFILE tag and that has not helped. I tried using UTF-8, and >>WINDOWS-1255. >> >>Since I have numerous language files I have even tried implementing >>this java class org.mozilla.universalchardet.UniversalDetector that >>detects the encoding of a file, and then using the detected encoding >>when reading in the translation files. But no matter what I do, the >>encoding is not preserved. >>Note, this library tells me my French files are "WINDOWS-1255"./ >> >>Does anyone have any suggestions on how I can handle this? >> >>Brook >> >> >> >> > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354715 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: Localization , French Accents...
Should I be saving it in Unicode or UTF-8? -Original Message- From: Bobby [mailto:bo...@acoderslife.com] Sent: February-27-13 11:01 AM To: cf-talk Subject: Re: Localization , French Accents... My first guess is that it is happening when the file is read in. Was it saved as unicode? I think notepad lets you do that. If not, notepad++ does. On 2/27/13 12:52 PM, "Brook Davies" wrote: > >I am trying to read in a number of text files that contain translations >(using French in this example) and store them in my applications app >scope. >The file I am reading in looks like this: >http://screencast.com/t/DZTv3iVrbyo > >When I dump the results from reading in the file, or try to use them in >output, the accents get munged: >http://screencast.com/t/aoRcLWWHn > >I have tried everything I can think of to get this to work and >everything has failed. I have tried manually setting the charset on the >CFFILE tag and that has not helped. I tried using UTF-8, and >WINDOWS-1255. > >Since I have numerous language files I have even tried implementing >this java class org.mozilla.universalchardet.UniversalDetector that >detects the encoding of a file, and then using the detected encoding >when reading in the translation files. But no matter what I do, the >encoding is not preserved. >Note, this library tells me my French files are "WINDOWS-1255"./ > >Does anyone have any suggestions on how I can handle this? > >Brook > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354714 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Decrypting a string which was encrypted by C# doesn't handle extended ascii
Maybe this would help? http://stackoverflow.com/questions/10247896/aes-rijndael-encrypt-between-c-and-java Regards Mark Drew On 27 Feb 2013, at 16:18, Bert Dawson wrote: > > Hi > > I need to decrypt a string which was originally encrypted in C#. It works > fine for normal ascii strings, but not with extended ascii characters, e.g. > the ö in Citroën. It returns the unrepresentable character 65533 > > This is the code that was used for the encryption: > http://pastebin.com/gxv6cuYJ > > And this is what I'm using to decrypt > http://pastebin.com/vFqGXr0j > > Any help would be greatly appreciated. > > Cheers > Bert > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354713 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfc WSDL is cached and won't let go
Can you file a bug report for that please? https://bugbase.adobe.com/ On Wed, Feb 27, 2013 at 7:55 AM, Dale Western < dale.west...@columbusdirect.com> wrote: > > I had this problem and it turned out that the cfcomponent displayname must > be different to the name of the webservice. So > > if you have > > myWebService.cfc?wsdl > > and inside it > > > > then boom! > > doing this sorts the problem > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354712 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Decrypting a string which was encrypted by C# doesn't handle extended ascii
Hi I need to decrypt a string which was originally encrypted in C#. It works fine for normal ascii strings, but not with extended ascii characters, e.g. the ö in Citroën. It returns the unrepresentable character 65533 This is the code that was used for the encryption: http://pastebin.com/gxv6cuYJ And this is what I'm using to decrypt http://pastebin.com/vFqGXr0j Any help would be greatly appreciated. Cheers Bert ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354711 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
know this Oracle JDBC error? Message 1018 not found
> > Does anybody know what this error is? Not getting any help Googling. > [Macromedia][Oracle JDBC Driver](Internal Error) Message 1018 not found > > > It happened after a request with 2 queries ran for a very long time > (basically, the query is hung and the ColdFusion request is frozen). > > - A DBA checked the query in a SQL Optimizer and it ran fine. > > - One query returned 248 rows, the other query never returned > anything (see below). > > - The user got a generic InternetExplorer timeout error page. > > > > Thank you, > > Chris > > > > Message > > [Macromedia][Oracle JDBC Driver](Internal Error) Message 1018 not found. > > SQLState > > HY000 > > StackTrace > > java.sql.SQLException: [Macromedia][Oracle JDBC Driver](Internal Error) > Message 1018 not found. at > macromedia.jdbc.base.BaseExceptions.createException(Unknown Source) at > macromedia.jdbc.base.BaseExceptions.getException(Unknown Source) at > macromedia.jdbc.oracle.net8.OracleDataProvider.receivePiggybackPacket(Unknown > Source) at macromedia.jdbc.oracle.net8.OracleDataProvider.readByte(Unknown > Source) at > macromedia.jdbc.oracle.net8.OracleNet8NSPTDAPacket.getNextTTCCode(Unknown > Source) at > macromedia.jdbc.oracle.OracleImplStatement.processBufferedReply(Unknown > Source) at macromedia.jdbc.oracle.OracleImplStatement.fetchNext(Unknown > Source) at macromedia.jdbc.oracle.OracleImplStatement.fetchNext2(Unknown > Source) at macromedia.jdbc.oracle.OracleImplStatement.execute(Unknown > Source) at macromedia.jdbc.base.BaseStatement.commonExecute(Unknown Source) > at macromedia.jdbc.base.BaseStatement.executeInternal(Unknown Source) at > macromedia.jdbc.base.BaseStatement.execute(Unknown Source) at > com.intergral.fusionreactor.jdbc.h.execute(StatementSurrogate.java:55) at > coldfusion.server.j2ee.sql.JRunStatement.execute(JRunStatement.java:348) at > coldfusion.sql.Executive.executeQuery(Executive.java:1364) at > coldfusion.sql.Executive.executeQuery(Executive.java:1127) at > coldfusion.sql.Executive.executeQuery(Executive.java:1058) at > coldfusion.sql.SqlImpl.execute(SqlImpl.java:341) at > coldfusion.tagext.sql.QueryTag.executeQuery(QueryTag.java:915) at > coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:590) at > cfsearchinspections2ecfm757494456.runPage(F:\pool\content\Scripts\RH\search\searchinspections.cfm:143) > at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at > coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at > coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at > cfdefault2ecfm2142669457.runPage(F:\pool\content\Scripts\RH\search\default.cfm:38) > at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at > coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at > coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at > coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:381) at > coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) > at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at > coldfusion.filter.PathFilter.invoke(PathFilter.java:94) at > coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at > coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) > at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at > coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at > coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at > coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at > coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at > coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:126) > at coldfusion.CfmServlet.service(CfmServlet.java:200) at > coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at > jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at > com.intergral.fusionreactor.filter.FusionReactorFilter.c(FusionReactorFilter.java:428) > at > com.intergral.fusionreactor.filter.FusionReactorFilter.d(FusionReactorFilter.java:262) > at > com.intergral.fusionreactor.filter.FusionReactorFilter.doFilter(FusionReactorFilter.java:171) > at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at > coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) > at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) > at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at > jrun.servlet.FilterChain.service(FilterChain.java:101) at > jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at > jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at > jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) > at > jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) > at > jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) > at > jrunx.scheduler.ThreadPool$DownstreamMe
Re: Localization , French Accents...
My first guess is that it is happening when the file is read in. Was it saved as unicode? I think notepad lets you do that. If not, notepad++ does. On 2/27/13 12:52 PM, "Brook Davies" wrote: > >I am trying to read in a number of text files that contain translations >(using French in this example) and store them in my applications app >scope. >The file I am reading in looks like this: >http://screencast.com/t/DZTv3iVrbyo > >When I dump the results from reading in the file, or try to use them in >output, the accents get munged: >http://screencast.com/t/aoRcLWWHn > >I have tried everything I can think of to get this to work and everything >has failed. I have tried manually setting the charset on the CFFILE tag >and >that has not helped. I tried using UTF-8, and WINDOWS-1255. > >Since I have numerous language files I have even tried implementing this >java class org.mozilla.universalchardet.UniversalDetector that detects the >encoding of a file, and then using the detected encoding when reading in >the >translation files. But no matter what I do, the encoding is not preserved. >Note, this library tells me my French files are "WINDOWS-1255"./ > >Does anyone have any suggestions on how I can handle this? > >Brook > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354709 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Localization , French Accents...
Not sure if this helps and depends what you're trying to do with the text, if you want to output them to a page, putting this at the top of the .cfm page should help. I had problems displaying foreign characters until I included the above on the pages. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354708 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Localization , French Accents...
I am trying to read in a number of text files that contain translations (using French in this example) and store them in my applications app scope. The file I am reading in looks like this: http://screencast.com/t/DZTv3iVrbyo When I dump the results from reading in the file, or try to use them in output, the accents get munged: http://screencast.com/t/aoRcLWWHn I have tried everything I can think of to get this to work and everything has failed. I have tried manually setting the charset on the CFFILE tag and that has not helped. I tried using UTF-8, and WINDOWS-1255. Since I have numerous language files I have even tried implementing this java class org.mozilla.universalchardet.UniversalDetector that detects the encoding of a file, and then using the detected encoding when reading in the translation files. But no matter what I do, the encoding is not preserved. Note, this library tells me my French files are "WINDOWS-1255"./ Does anyone have any suggestions on how I can handle this? Brook ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354707 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfc WSDL is cached and won't let go
I had this problem and it turned out that the cfcomponent displayname must be different to the name of the webservice. So if you have myWebService.cfc?wsdl and inside it then boom! doing this sorts the problem ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354706 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfc WSDL is cached and won't let go
I had this problem and it turned out that the cfcomponent displayname must be different to the name of the webservice. So if you have myWebService.cfc?wsdl and inside it then boom! doing this sorts the problem ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354705 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Weird issue with SOLR and cfindex - it won't index more than 10k rows
Thanks for the insight James, I will definitely try that out. On 26 February 2013 23:40, James Mc wrote: > > The 10k records entry is only for autocommit which means that as soon as > your collections reaches 10k uncommitted docs it will commit them and then > start queuing up more. > > What could be happening is that you have more than 10k but less than 20k > documents which would leave these documents uncommitted. > > Run the following after indexing. > > > > and see if that commits the remaining documents. > > >I did more digging into the Solr config XML for my collection, and found > >this in the updateHandler: > > > > > > 1 > > > > > > > >That seems to allow me to index more documents. > > > >Solr ended up not being able to do what I needed so I've used SQL > full-text > >indexing instead. > > > >Just wanted to ask again if there's anyone out there who's had experience > >with this before > > > > > > > > > > > >On 25 February 2013 15:19, Edward Chanter wrote: > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354704 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm