SQL Server 2016通过JAVA代理访问时生成(BOM /滑稽)字符

时间:2018-06-19 11:32:19

标签: reporting-services ssrs-2012 apache-httpclient-4.x ssrs-2016 ssrs-2017

当我们使用Apache HTTP客户端和Apache Axis进行呼叫时,为什么SQL Server 2016和2017在响应时会生成一些BOM字符。

但是,SqlServer 2012和2014没有问题。

我要附加一段示例生成的代码。

<script type="text/javascript">function ResizeVerticalTextBoxes(){if(window.jQuery){$(".canGrowVerticalTextBox").each(function(){var node=$(this);var child=node.children(":first");var td=node.parent();if(child.width()>node.width()){td.width(child.outerWidth());node.width(child.outerWidth())}else if(!node.hasClass("canShrinkVerticalTextBox"))child.outerWidth(node.width())});$(".canShrinkVerticalTextBox").each(function(){var node=$(this);var child=node.children(":first");var td=node.parent();if(child.width()<node.width()){td.width(child.outerWidth());node.width(child.outerWidth())}else child.outerWidth(node.width())})}}function ResizeTablixRows(){if(window.jQuery){MarkCanGrowRows();MarkCanShrinkRows();$(".cannotGrowTextBoxInTablix").each(function(){var node=$(this);var child=node.children().first();var childHeight=child.height();var grandparent=node.parent().parent();if(node.height()>childHeight)grandparent.css("height","")})}}function MarkCanGrowRows(){if(window.jQuery){if($(".cannotGrowTextBoxInTablix").length===0||$(".canGrowTextBoxInTablix").length===0)return;$("tr > td > .canGrowTextBoxInTablix").parent().parent().each(function(){var row=$(this);if(row.find(".canGrowTextBoxInTablix").length===0||row.find(".cannotGrowTextBoxInTablix").length===0)return;else row.find(".cannotGrowTextBoxInTablix").each(function(){$(this).parent().addClass("tdResizable")})})}}function MarkCanShrinkRows(){if(window.jQuery){if($(".canShrinkTextBoxInTablix").length===0)return;$("tr > td > .canShrinkTextBoxInTablix").parent().parent().each(function(){var row=$(this);if(row.find(".canShrinkTextBoxInTablix").length===0)return;else if(row.find(".cannotShrinkTextBoxInTablix").length===0)row.find("td").each(function(){$(this).addClass("tdResizable")})})}}function Resize100HeightElements(){if(window.jQuery)$(".resize100Height").each(function(){var self=$(this);var parent=self.parent();var parentHeight=parent.height();while(!(parent.is("div")||parent.is("td")||parent.is("tr"))||parentHeight===0){parent=parent.parent();parentHeight=parent.height()}self.height(parentHeight)})}function Resize100WidthElements(){if(window.jQuery)$(".resize100Width").each(function(){var self=$(this);var parent=self.parent();var parentWidth=parent.width();while(!(parent.is("div")||parent.is("td")||parent.is("tr"))||parentWidth===0){parent=parent.parent();parentWidth=parent.width()}self.width(parentWidth)})}function FixScrollBars(){if(window.jQuery)$('div[id*="VisibleReportContent"]').each(function(){var parent=$(this).parent();if(parent)parent.height($(window).height()-parent.offset().top)})}function RegisterResizeScrollBars(){if(window.jQuery)$(window).on("resize",FixScrollBars)}function ResizeToolbar(){if(window.jQuery){var availableSpace=$(document).width();var toolbarButtons=$(".MenuBarBkGnd > .ToolBarButtonsCell").children();$(".ToolBarBackground").show();$(".ToolBarBackground").css({zoom:"1"});toolbarButtons.each(function(index,button){$(button).show()});$(".ToolbarToggleHtml").css({display:"inline-block"});if(availableSpace<300)$(".ToolBarBackground").hide();else if(availableSpace<500)$(".ToolBarBackground").css({zoom:"0.75"});else if(availableSpace<600)$(".ToolBarBackground").css({zoom:"0.8"});else if(availableSpace<700)$(".ToolBarBackground").css({zoom:"0.85"});else if(availableSpace<800)$(".ToolBarBackground").css({zoom:".9"});var postScaleAvailableSpace=$(".ToolBarButtonsCell").width()-100;var postScaleWithOfIcons=0;toolbarButtons.each(function(index,button){postScaleWithOfIcons+=$(button).outerWidth(true)});$(toolbarButtons.get().reverse()).each(function(index,button){if(postScaleWithOfIcons>=postScaleAvailableSpace){postScaleWithOfIcons-=$(button).outerWidth(true);$(button).hide()}})}}function RegisterResizeToolbar(){if(window.jQuery)$(window).on("resize",ResizeToolbar)}function PostRenderActions(){Resize100HeightElements();Resize100WidthElements();ResizeVerticalTextBoxes();ResizeTablixRows();RegisterResizeScrollBars();FixScrollBars();RegisterResizeToolbar();ResizeToolbar()}</script><script type="text/javascript">$(document).ready(function(){PostRenderActions()});</script>

字符正在出现带有拖车功能的前缀,一个是

函数ResizeVerticalTextBoxes()

其他是

$(document).ready(function(){PostRenderActions()});

由浏览器处理时,浏览器在这些函数调用时失败。

0 个答案:

没有答案